Hey, I'm currently trying to figure out how to change the magnitude of the holonomic drive system. I tried the obvious approach (Changing the first float) however, with out current code, nothing seemed to change at all. Could someone look it over and tell me what they think? We basically want the spin of the robot to be dependent on the value returned by the joystick throttle:
Code:
//Stop Button
if(!joyStick->GetRawButton(3))
{
//Turn left
if(joyStick->GetRawButton(4))
joanRobo->HolonomicDrive(joyStick->GetThrottle(), 0.0, -180.0);
//Turn right
else if (joyStick->GetRawButton(5))
joanRobo->HolonomicDrive(joyStick->GetThrottle(), 0.0, 180.0);
//Regular holonomic movement
else
joanRobo->HolonomicDrive(joyStick->GetMagnitude(), joyStick->GetDirectionDegrees(), 0.0);
}
else
//Stop all movement
joanRobo->HolonomicDrive(0.0, 0.0, 0.0);