Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Mecanum Code weird bug need help (http://www.chiefdelphi.com/forums/showthread.php?t=104575)

mikets 21-03-2012 18:07

Re: Mecanum Code weird bug need help
 
Quote:

Originally Posted by rsegrest (Post 1147479)
how exactly would we write that if wanted to invert the motors for 1 and 3

Let's say if motor 1 is the front left motor and motor 3 is the rear left motor.
Code:

SetInvertedMotor(kFrontLeftMotor, true);
SetInvertedMotor(kRearLeftMotor, true);


rsegrest 21-03-2012 18:14

Re: Mecanum Code weird bug need help
 
Quote:

Originally Posted by mikets (Post 1147480)
Let's say if motor 1 is the front left motor and motor 3 is the rear left motor.
Code:

SetInvertedMotor(kFrontLeftMotor, true);
SetInvertedMotor(kRearLeftMotor, true);


Trying this now...

rsegrest 21-03-2012 18:21

Re: Mecanum Code weird bug need help
 
ah, figured it out. it needs to be:

myRobot.SetInvertedMotor(myRobot.kFrontLeftMotor, true);
myRobot.SetInvertedMotor(myRobot.kRearLeftMotor, true);

thanks for the help, now it builds and I will see if it fixes the problem


All times are GMT -5. The time now is 14:27.

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