puku0x / cvdrone

CV Drone (= OpenCV + AR.Drone)
https://github.com/puku0x/cvdrone/wiki/How-to-build
Other
203 stars 93 forks source link

unit of velocity #49

Closed msoar2 closed 8 years ago

msoar2 commented 8 years ago

Hello!! your AR drone code is really awesome i just wonder what unit of velocity of drone?

and also roll, yaw and pitch

thank you!!!

puku0x commented 8 years ago

Hi !

The unit of velocities which returned by ARDrone::getVelocity() is [m/s].

Moreover, the unit of roll, pitch and yaw angles is [rad]. If you would like to use them in degrees, please use RAD_TO_DEG.

// Convert angles from [rad] to [deg]
double roll  = ardrone.getRoll()  * RAD_TO_DEG;
double pitch = ardrone.gerPitch() * RAD_TO_DEG;
double yaw   = ardrone.gerYaw()   * RAD_TO_DEG;

Regards, puku

msoar2 commented 8 years ago

really appreciate!! thanks