|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: How to invert the x-axis values?
We made it so the Right and Left MotorInverted values are opposite because the robot would only drive in a circle (the two motors are opposite ways and would clash without doing this), but I don't think we changed anything else yet.
(Also, sorry if you can't understand what I'm saying exactly; I'm a newbie programmer for my team. ) |
|
#2
|
||||
|
||||
|
Re: How to invert the x-axis values?
There is a "negate" function available for this. It is a little cleaner on the BD.
|
|
#3
|
|||||
|
|||||
|
Re: How to invert the x-axis values?
It might just be that the left and right motors are swapped. Make doubly certain that the PWM outputs you're telling the Drive Open to use match the ones actually wired on the robot. There are ways of connecting things and configuring the "MotorInverted" parameters that will give the results you are reporting.
|
|
#4
|
||||
|
||||
|
Re: How to invert the x-axis values?
As mentioned, you correct by physically swapping motor wires or multiplying the command value by negative one. For me though, the cleaner way is to look into the begin.vi where the motor definition is. You should see a boolean input to the motor definition vi that allows you to change motor direction definition.
|
|
#5
|
|||||
|
|||||
|
Re: How to invert the x-axis values?
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|