37 #include "generated/airframe.h"
42 #include "generated/flight_plan.h"
57 #ifndef NAV_CATAPULT_ACCELERATION_THRESHOLD
58 #define NAV_CATAPULT_ACCELERATION_THRESHOLD 1.5
63 #ifndef NAV_CATAPULT_MOTOR_DELAY
64 #define NAV_CATAPULT_MOTOR_DELAY 0.75 // seconds
69 #ifndef NAV_CATAPULT_HEADING_DELAY
70 #define NAV_CATAPULT_HEADING_DELAY 3.0 // seconds
75 #ifndef NAV_CATAPULT_INITIAL_PITCH
76 #define NAV_CATAPULT_INITIAL_PITCH RadOfDeg(10)
81 #ifndef NAV_CATAPULT_INITIAL_THROTTLE
82 #define NAV_CATAPULT_INITIAL_THROTTLE 1.0
113 reset_lauch =
launch != 1;
185 float dir_L = sqrt(dir_x * dir_x + dir_y * dir_y);
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
bool_t nav_catapult_setup(void)
static struct Int32RMat * orientationGetRMat_i(struct OrientationReps *orientation)
Get vehicle body attitude rotation matrix (int).
float nav_catapult_acceleration_threshold
float alt
in meters above WGS84 reference ellipsoid
static float nav_catapult_y
#define NAV_CATAPULT_INITIAL_THROTTLE
float nav_catapult_motor_delay
static uint16_t nav_catapult_launch
Handling of messages coming from ground and other A/Cs.
#define NAV_CATAPULT_ACCELERATION_THRESHOLD
static struct EnuCoor_f * stateGetPositionEnu_f(void)
Get position in local ENU coordinates (float).
#define NAV_CATAPULT_MOTOR_DELAY
Fixed wing horizontal control.
#define NavGotoWaypoint(_wp)
float nav_catapult_initial_pitch
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
float nav_catapult_initial_throttle
#define NavVerticalAltitudeMode(_alt, _pre_climb)
Set the vertical mode to altitude control with the specified altitude setpoint and climb pre-command...
#define ACCEL_FLOAT_OF_BFP(_ai)
struct Imu imu
global IMU state
static bool_t nav_catapult_armed
#define NavVerticalThrottleMode(_throttle)
Set the vertical mode to fixed throttle with the specified setpoint.
Inertial Measurement Unit interface.
#define NavVerticalAutoThrottleMode(_pitch)
Set the climb control to auto-throttle with the specified pitch pre-command.
void nav_catapult_highrate_module(void)
struct OrientationReps body_to_imu
rotation from body to imu frame
#define DefaultChannel
SITL.
#define NavAttitude(_roll)
catapult launch timing system
static struct UtmCoor_f * stateGetPositionUtm_f(void)
Get position in UTM coordinates (float).
API to get/set the generic vehicle states.
static float nav_catapult_x
void int32_rmat_transp_vmult(struct Int32Vect3 *vb, struct Int32RMat *m_b2a, struct Int32Vect3 *va)
rotate 3D vector by transposed rotation matrix.
Common code for AP and FBW telemetry.
float nav_catapult_heading_delay
#define NAV_CATAPULT_INITIAL_PITCH
Fixedwing Navigation library.
bool_t nav_catapult_run(uint8_t _to, uint8_t _climb)
#define NAV_CATAPULT_HEADING_DELAY
Fixedwing autopilot modes.
bool_t nav_select_touch_down(uint8_t _td)