Quote:
Originally Posted by mahmosh
i want to understand what is float sensitivity?? what could i put on it?
and other question: can i replace speedcontroller *...... with a number of the pwm in the digital sidecar? i mean if i am using a victor and have a connection for pwm number 1 so could i write for example :
Code:
myrobot.robotdrive(1,2,3,4,float sensitivity)
|
the sensitivity parameter you can leave out.
As far as replacing speedcontroller if you look at the class the constructor is overloaded and one of the possible variations is:
Code:
RobotDrive(UINT32 frontLeftMotorChannel, UINT32 rearLeftMotorChannel,
UINT32 frontRightMotorChannel, UINT32 rearRightMotorChannel, float sensitivity = 0.5);
so you could do
Code:
myrobot.robotdrive(1,2,3,4);
then for arcade
Code:
myrobot.ArcadeDrive(stick);
for 1 joystick control