|
Re: Very basic programming issue
Quote:
Originally Posted by Radical Pi
Actually, to fix it just add a - before the GetAxis on the joyticks and it will run the motors in the opposite directions. The joyticks are very un-intuitive and have forward as a negative value. In case you're wondering, the - simply does a mathematical negative on the value
|
however, he is using the compressed form:
myRobot.ArcadeDrive(stick);
not
myRobot.ArcadeDrive(stick.GetY(), stick.GetX());
so your suggestion won't work (at least at this point)
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
|