Go to the documentation of this file.00001 #ifndef COMM_UTIL_LL_H
00002 #define COMM_UTIL_LL_H
00003
00004 #include <stdint.h>
00005 #include <math.h>
00006
00007 #define GRAVITY_SI 9.810665 // in SI m/s^2
00008
00009
00010 inline float degreesToRadians(float angle);
00011 inline float radiansToDegrees(float angle);
00012
00013 inline float LLToSIClimb(int16_t climb);
00014
00015
00016
00017 inline float LLToSIAccX(int16_t acc);
00018 inline float LLToSIAccY(int16_t acc);
00019 inline float LLToSIAccZ(int16_t acc);
00020
00021
00022
00023
00024
00025
00026
00027
00028 inline float LLToSIAngleRateYaw (int16_t angle_rate);
00029 inline float LLToSIAngleRateRoll (int16_t angle_rate);
00030 inline float LLToSIAngleRatePitch(int16_t angle_rate);
00031
00032
00033
00034
00035 inline float LLToSIAngleRoll(int16_t angle);
00036 inline float LLToSIAnglePitch(int16_t angle);
00037 inline float LLToSIAngleYaw(uint16_t angle);
00038
00039
00040
00041
00042
00043
00044
00045
00046 inline short SIToLLCmdRoll (float angle_cmd);
00047 inline short SIToLLCmdPitch (float angle_cmd);
00048 inline short SIToLLCmdYawRate(float yaw_rate_cmd);
00049 inline short SIToLLCmdThrust (float thrust_cmd);
00050
00051
00052
00053
00054
00055
00056 #endif // COMM_UTIL_H