38 #ifdef NPS_USE_COMMANDS
40 #define NPS_NO_MOTOR_MIXING TRUE
43 #ifndef NPS_NO_MOTOR_MIXING
45 #if NPS_COMMANDS_NB != MOTOR_MIXING_NB_MOTOR
46 #warning "NPS_COMMANDS_NB does not match MOTOR_MIXING_NB_MOTOR!"
52 #include "pprzlink/messages.h"
63 #ifndef NPS_BYPASS_AHRS
64 #define NPS_BYPASS_AHRS FALSE
67 #ifndef NPS_BYPASS_INS
68 #define NPS_BYPASS_INS FALSE
72 #error "INDI_RPM_FEEDBACK can not be used in simulation!"
102 #if RADIO_CONTROL && !RADIO_CONTROL_TYPE_DATALINK
121 float pressure = (float)
sensors.baro.value;
142 float dist = (float)
sensors.sonar.value;
147 #ifdef SENSOR_SYNC_SEND_SONAR
175 #if NPS_NO_MOTOR_MIXING
Main include for ABI (AirBorneInterface).
#define BARO_SIM_SENDER_ID
Dispatcher to register actual AHRS implementations.
bool autopilot_get_motors_on(void)
get motors status
static void sys_tick_handler(void)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
pprz_t commands[COMMANDS_NB]
Hardware independent code for commands handling.
Handling of messages coming from ground and other A/Cs.
Common code for AP and FBW telemetry.
if(GpsFixValid() &&e_identification_started)
Device independent GPS code (interface)
void gps_feed_value(void)
#define RATES_COPY(_a, _b)
#define QUAT_COPY(_qo, _qi)
#define VECT3_COPY(_a, _b)
static void stateSetAccelNed_f(struct NedCoor_f *ned_accel)
Set acceleration in NED coordinates (float).
static void stateSetNedToBodyQuat_f(struct FloatQuat *ned_to_body_quat)
Set vehicle body attitude from quaternion (float).
static void stateSetPositionNed_f(struct NedCoor_f *ned_pos)
Set position from local NED coordinates (float).
static void stateSetBodyRates_f(struct FloatRates *body_rate)
Set vehicle body angular rate (float).
static void stateSetSpeedNed_f(struct NedCoor_f *ned_speed)
Set ground speed in local NED coordinates (float).
static void stateSetAirspeed_f(float airspeed)
Set airspeed (float).
Inertial Measurement Unit interface.
void imu_feed_gyro_accel(void)
Integrated Navigation System interface.
void main_ap_periodic(void)
Hardware independent API for actuators (servos, motor controllers).
struct MotorMixing motor_mixing
int32_t commands[MOTOR_MIXING_NB_MOTOR]
double commands[NPS_COMMANDS_NB]
#define NPS_COMMANDS_NB
Number of commands sent to the FDM of NPS.
struct NpsAutopilot nps_autopilot
void nps_autopilot_run_step(double time)
void nps_autopilot_init(enum NpsRadioControlType type_rc, int num_rc_script, char *rc_dev)
void sim_overwrite_ins(void)
void nps_autopilot_run_systime_step(void)
void sim_overwrite_ahrs(void)
void nps_electrical_init(void)
void nps_electrical_run_step(double time)
Electrical status (bat voltage) for NPS.
struct NedCoor_d ltpprz_ecef_vel
velocity in ltppprz frame, wrt ECEF frame
struct NedCoor_d ltpprz_pos
struct NedCoor_d ltpprz_ecef_accel
accel in ltppprz frame, wrt ECEF frame
struct DoubleQuat ltp_to_body_quat
struct DoubleRates body_ecef_rotvel
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
void nps_radio_control_init(enum NpsRadioControlType type, int num_script, char *js_dev)
bool nps_radio_control_available(double time)
bool nps_sensors_airspeed_available(void)
bool nps_sensors_sonar_available(void)
bool nps_sensors_mag_available(void)
bool nps_sensors_gps_available(void)
bool nps_sensors_baro_available(void)
bool nps_sensors_gyro_available(void)
bool nps_sensors_temperature_available(void)
Paparazzi generic algebra macros.
vector in North East Down coordinates Units: meters
Generic interface for radio control modules.
void radio_control_feed(void)
API to get/set the generic vehicle states.
Architecture independent timing functions.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.