Sphero-iOS-SDK icon indicating copy to clipboard operation
Sphero-iOS-SDK copied to clipboard

ConvenienceRobot Send Command?

Open gabriellet opened this issue 8 years ago • 1 comments

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.

gabriellet avatar Oct 20 '16 21:10 gabriellet

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.

zenelk avatar Nov 02 '16 16:11 zenelk