parallaxinc / Simple-Libraries

Contents of the SimpleIDE workspace folder and its Parallax Learn Simple Libraries subfolder.
http://learn.parallax.com/propeller-c-set-simpleide/update-your-learn-folder
21 stars 21 forks source link

abdrive360 - Unable to set max velocity for drive_goto #105

Closed AndyLindsay closed 6 years ago

AndyLindsay commented 6 years ago

System does not respond to drive_setMaxVelocity(FOR_GOTO, ...)

AndyLindsay commented 6 years ago
// Test Code

#include "simpletools.h"
#include "abdrive360.h"

int main()                    
{
  drive_setMaxVelocity(FOR_GOTO, 96);
  drive_goto(192, 192);
  drive_setMaxVelocity(FOR_GOTO, 64);
  drive_goto(-28, 28);
  drive_goto(28 * 2, -28 * 2);
  drive_goto(-28, 28);
  drive_goto(-192, -192);

  drive_setMaxVelocity(FOR_GOTO, 32);

  drive_goto(192, 128);
  drive_goto(-192, -128);
  drive_goto(128, 192);
  drive_goto(-128, -192);
}
AndyLindsay commented 6 years ago

Fixed https://github.com/parallaxinc/Simple-Libraries/commit/e3e4317e00667950a3730a4f38b86770eae2c3ff