Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Setting inverted motor help (http://www.chiefdelphi.com/forums/showthread.php?t=71568)

kiettyyyy 08-01-2009 06:02

Setting inverted motor help
 
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

Re: Setting inverted motor help
 
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:

Code:

myRobot.SetInvertedMotor(myRobot.kFrontLeftMotor, true);


All times are GMT -5. The time now is 02:40.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi