![]() |
Vex SquareBot- movement programming problem
Hi, I'm programming the Vex SquareBot in MPLAB IDE, and am having some problems programming the movement since one of the motors on the SquareBot is inverted. I tried this code:
Code:
void normal_operation()Does anyone have any suggestions? I really appreciate the help :) Thanks, Nathan |
Re: Vex SquareBot- movement programming problem
what is happening is that you are probably going below 0. when that happens it loops back to 255.
just put in an if statement to catch that before it changes speed. the same problem could cause it to go 255 to 0. so put in a if statement to catch that also |
Re: Vex SquareBot- movement programming problem
Yep, your right! I found this out about an hour after I posted for help. I still don't understand why the value went below 0 though?
Thanks for your help, Nathan |
| All times are GMT -5. The time now is 22:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi