mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
aa598b575a
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1935 f9c3cf11-9bcb-44bc-f272-b75c42450872
24 lines
659 B
C
24 lines
659 B
C
/*
|
|
* constants.h
|
|
*
|
|
* Created on: Apr 7, 2011
|
|
* Author: nkgentry
|
|
*/
|
|
|
|
#ifndef CONSTANTS_H_
|
|
#define CONSTANTS_H_
|
|
|
|
#include "math.h"
|
|
|
|
const float scale_deg = 1e7; // scale of integer degrees/ degree
|
|
const float scale_m = 1e3; // scale of integer meters/ meter
|
|
const float rEarth = 6371000; // radius of earth, meters
|
|
const float rad2Deg = 180/M_PI; // radians to degrees
|
|
const float deg2Rad = M_PI/180; // degrees to radians
|
|
const float rad2DegInt = rad2Deg*scale_deg; // radians to degrees x 1e7
|
|
const float degInt2Rad = deg2Rad/scale_deg; // degrees x 1e7 to radians
|
|
|
|
#define MAV_MODE_FAILSAFE MAV_MODE_TEST3
|
|
|
|
#endif /* CONSTANTS_H_ */
|