Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Driving in reverse #22

Open
DarrenGuinness opened this issue Feb 18, 2016 · 3 comments
Open

Driving in reverse #22

DarrenGuinness opened this issue Feb 18, 2016 · 3 comments

Comments

@DarrenGuinness
Copy link

I am working with the Ollie, and the documentation states that you can make the device drive in reverse by setting the last parameter to true, however in my tests regardless of whether this is set to true or false the robot always drives forward. I can bypass this using the raw motor functions which do in fact reverse, however I was hoping to use the stabilization feature of the normal drive() function. Is this a global issue, or just an issue with my Ollie?

@PaulTR
Copy link
Contributor

PaulTR commented Feb 19, 2016

I just wanted to get a little more clarification on what you're seeing. When the flag is set for reverse, the robot should turn around and drive in the 'forward' direction while facing backwards, rather than driving in the 'behind' direction (which can be achieved by driving at 180 degrees with reverse on). Is this what you're seeing, or are you getting a different action?

@DarrenGuinness
Copy link
Author

Ollie.drive(0, .15f, true) => robot drives forward at specified velocity (ollie facing forward)
Ollie.drive(0, .15f, false) => robot drives forward at specified velocity (ollie facing forward)
Ollie.drive(180, .15f, true) => robot turns 180 degrees, and drives in opposite direction at specified velocity (ollie faces forward)

Ollie.setRawMotors(RawMotorCommand.MotorMode.MOTOR_MODE_REVERSE,90, RawMotorCommand.MotorMode.MOTOR_MODE_REVERSE, 90-1); => Ollie drives in reverse at specified motor speed

The Ollie doesn't seem to properly drive in reverse unless the raw motor commands are used.

@iamcgn
Copy link

iamcgn commented Mar 4, 2016

Hi Dronius,
I'm going to look into this along with the other issue you raised.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants