MahatmaX / YADrone

Yet Another Drone Framework (for the AR.Drone 2)
39 stars 40 forks source link

Check argument ranges #18

Open MahatmaX opened 10 years ago

MahatmaX commented 10 years ago

Due to Eduardo (see forum entry https://projects.ardrone.org/boards/1/topics/show/5259 ) the drone acts strangely if method arguments are beyond their respective ranges.

Cite: "if i set the yaw speed to 1 rad/s, and i send it a speed of 1,5 rad/s it starts to spin at the maximum yaw speed and then spin the other way"

FedericOldani commented 8 years ago

Hi, I'm using your code but I have a similar problem, I didn't modify anything but when I add the command "cmd.spinLeft(speed).doFor(1500);" to the tutorialCommand, the drone starts to spin at the maximum speed. How can I solve? Thank you