49 #include "pprzlink/messages.h"
60 #ifndef NPS_BYPASS_AHRS
61 #define NPS_BYPASS_AHRS FALSE
64 #ifndef NPS_BYPASS_INS
65 #define NPS_BYPASS_INS FALSE
69 #error "INDI_RPM_FEEDBACK can not be used in simulation!"
100 #if RADIO_CONTROL && !RADIO_CONTROL_TYPE_DATALINK
119 float pressure = (float)
sensors.baro.value;
140 float dist = (float)
sensors.sonar.value;
145 #ifdef SENSOR_SYNC_SEND_SONAR
177 PRINT_CONFIG_MSG(
"Using throttle, steering commands because rover's fdm don't have explicit actuators.")
Main include for ABI (AirBorneInterface).
#define BARO_SIM_SENDER_ID
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]
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(uint16_t id, struct NedCoor_f *ned_accel)
Set acceleration in NED coordinates (float).
static void stateSetNedToBodyQuat_f(uint16_t id, struct FloatQuat *ned_to_body_quat)
Set vehicle body attitude from quaternion (float).
static void stateSetPositionNed_f(uint16_t id, struct NedCoor_f *ned_pos)
Set position from local NED coordinates (float).
void stateCalcPositionEnu_i(void)
static void stateSetBodyRates_f(uint16_t id, struct FloatRates *body_rate)
Set vehicle body angular rate (float).
static void stateSetSpeedNed_f(uint16_t id, struct NedCoor_f *ned_speed)
Set ground speed in local NED coordinates (float).
static void stateSetAirspeed_f(uint16_t id, float airspeed)
Set airspeed (float).
Inertial Measurement Unit interface.
void imu_feed_gyro_accel(void)
Integrated Navigation System interface.
PRINT_CONFIG_MSG("USE_INS_NAV_INIT defaulting to TRUE")
void main_ap_periodic(void)
Hardware independent API for actuators (servos, motor controllers).
double commands[NPS_COMMANDS_NB]
#define NPS_COMMANDS_NB
Number of commands sent to the FDM of NPS.
struct NpsAutopilot nps_autopilot
#ifndef NPS_NO_MOTOR_MIXING #include "modules/actuators/motor_mixing.h"
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.