mirror of https://github.com/ArduPilot/ardupilot
Move ToRad here to match ToDeg
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1338 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
ed8e70aff0
commit
22335b531d
|
@ -191,6 +191,7 @@ protected:
|
|||
/// XXX this should probably be replaced with radians()/degrees(), but their
|
||||
/// inclusion in wiring.h makes doing that here difficult.
|
||||
#define ToDeg(x) (x*57.2957795131) // *180/pi
|
||||
#define ToRad(x) (x*0.01745329252) // *pi/180
|
||||
|
||||
//@}
|
||||
|
||||
|
|
Loading…
Reference in New Issue