Log in

View Full Version : Setting inverted motor help


kiettyyyy
08-01-2009, 06:02
Hi all,

I'm trying to call the function "SetInvertedMotor".

I can't really find any documentation on this... Has anyone used this successfully?

Thanks!

Anshu C.
14-01-2009, 19:09
SetInvertedMotor takes two parameters: the first is of type "MotorType", which is a typedef'd enumeration defined in RobotDrive.h. The second is a boolean value.

This is how we used it:


myRobot.SetInvertedMotor(myRobot.kFrontLeftMotor, true);