Sphero-iOS-SDK
Sphero-iOS-SDK copied to clipboard
ConvenienceRobot Send Command?
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.
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.