NXT I2C Devices for Arduino

NXTMMX Forward & Reverse only moves one direction for rotations & degrees

Reported by Andrew Sylvester on 2010-06-15
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
NXTI2CDevice
Low
Clinton Blackmore

Bug Description

-In the NXTMMX code for runDegrees() & runRotations() when the direction is changed to reverse the motor still moves forward. The code should invert the value of degrees or rotations when the direction is changed.
-NXTMMX_DegreesControl.pde (In this program forward and reverse go the same direction)
-Branch revision 9

Related branches

Changed in nxti2cdevice:
assignee: nobody → Clinton Blackmore (clinton-blackmore)
importance: Undecided → Low

I've put in a fix. I believe you'll see it as revision 10.

What it came down to is my code set a proper value for the tachometer in a variable that was called tch, and then passes the unmodified tachometer in a function call to do the actual action. I have renamed some variables and clarified things.

Changed in nxti2cdevice:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers