|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||
|
|||
|
Re: Is RobotDrive required ?
Quote:
Both joysticks up : move forward Both joysticks down : move backward One up, one down : rotation Both left/right : sideway movement We used it in other competitions (Vex) and we found it to be way more intuitive Here's the code itself (in a stripped down version): frontLeft->Set(-stick.GetRawAxis(2)+stick.GetRawAxis(1)); backLeft->Set(-stick.GetRawAxis(2)-stick.GetRawAxis(1)); frontRight->Set(stick.GetRawAxis(4)+stick.GetRawAxis(3)); backRight->Set(stick.GetRawAxis(4)-stick.GetRawAxis(3)); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|