|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
38 #ifndef NPS_NO_MOTOR_MIXING
41 #if NPS_COMMANDS_NB != MOTOR_MIXING_NB_MOTOR
42 #warning "NPS_COMMANDS_NB does not match MOTOR_MIXING_NB_MOTOR!"
48 #include "pprzlink/messages.h"
59 #ifndef NPS_BYPASS_AHRS
60 #define NPS_BYPASS_AHRS FALSE
63 #ifndef NPS_BYPASS_INS
64 #define NPS_BYPASS_INS FALSE
68 #error "INDI_RPM_FEEDBACK can not be used in simulation!"
98 #if RADIO_CONTROL && !RADIO_CONTROL_TYPE_DATALINK
100 radio_control_feed();
117 float pressure = (float)
sensors.baro.value;
136 float dist = (float)
sensors.sonar.value;
141 #ifdef SENSOR_SYNC_SEND_SONAR
169 #if NPS_NO_MOTOR_MIXING
bool autopilot_get_motors_on(void)
get motors status
static void stateSetAirspeed_f(float airspeed)
Set airspeed (float).
#define NPS_COMMANDS_NB
Number of commands sent to the FDM of NPS.
vector in North East Down coordinates Units: meters
bool nps_sensors_sonar_available(void)
static void stateSetSpeedNed_f(struct NedCoor_f *ned_speed)
Set ground speed in local NED coordinates (float).
bool nps_sensors_gyro_available(void)
struct NedCoor_d ltpprz_ecef_vel
velocity in ltppprz frame, wrt ECEF frame
void sim_overwrite_ins(void)
bool nps_sensors_temperature_available(void)
struct NedCoor_d ltpprz_ecef_accel
accel in ltppprz frame, wrt ECEF frame
struct DoubleQuat ltp_to_body_quat
bool nps_sensors_mag_available(void)
void nps_autopilot_run_step(double time)
void imu_feed_gyro_accel(void)
void sim_overwrite_ahrs(void)
bool nps_sensors_baro_available(void)
void nps_autopilot_run_systime_step(void)
bool nps_sensors_airspeed_available(void)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
struct DoubleRates body_ecef_rotvel
#define BARO_SIM_SENDER_ID
Device independent GPS code (interface)
void gps_feed_value(void)
static void stateSetBodyRates_f(struct FloatRates *body_rate)
Set vehicle body angular rate (float).
bool nps_sensors_gps_available(void)
Architecture independent timing functions.
void nps_radio_control_init(enum NpsRadioControlType type, int num_script, char *js_dev)
void nps_electrical_run_step(double time)
if(GpsFixValid() &&e_identification_started)
Common code for AP and FBW telemetry.
static void stateSetAccelNed_f(struct NedCoor_f *ned_accel)
Set acceleration in NED coordinates (float).
static void main_init(void)
#define QUAT_COPY(_qo, _qi)
bool nps_radio_control_available(double time)
void nps_electrical_init(void)
struct NedCoor_d ltpprz_pos
static void stateSetPositionNed_f(struct NedCoor_f *ned_pos)
Set position from local NED coordinates (float).
static void main_event(void)
Paparazzi generic algebra macros.
Handling of messages coming from ground and other A/Cs.
void nps_autopilot_init(enum NpsRadioControlType type_rc, int num_rc_script, char *rc_dev)
double commands[NPS_COMMANDS_NB]
#define RATES_COPY(_a, _b)
struct NpsAutopilot nps_autopilot
static void sys_tick_handler(void)
int32_t commands[MOTOR_MIXING_NB_MOTOR]
struct MotorMixing motor_mixing
#define VECT3_COPY(_a, _b)
STATIC_INLINE void handle_periodic_tasks(void)
static void stateSetNedToBodyQuat_f(struct FloatQuat *ned_to_body_quat)
Set vehicle body attitude from quaternion (float).