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

ConvenienceRobot Send Command? #56

Open
gabriellet opened this issue Oct 20, 2016 · 1 comment
Open

ConvenienceRobot Send Command? #56

gabriellet opened this issue Oct 20, 2016 · 1 comment

Comments

@gabriellet
Copy link

Hi, I wanted to know if there's an extra step to using the ConvenienceRobot send function. I have some code like this:

robot.send(RKSetHeadingCommand(heading: 0.0))
robot.send(RKRollCommand(heading: hdg, velocity: 1.0, andDistance: dst)

While neither of these work, these do:

robot.setZeroHeading(0.0)
robot.drive(withHeading: hdg, andVelocity: 1.0)

Any suggestions as to why this may be happening.

@zenelk
Copy link

zenelk commented Nov 2, 2016

Hey there, there is no other step other than send. I'll take a peek into this problem. Thanks for bringing it to our attention. Strangely enough, robot.setZeroHeading() actually calls robot.send(RKSetHeadingCommand(heading: 0.0)) on the inside.

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

2 participants