Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the source code of this file.
Data Structures | |
struct | NpsAutopilot |
Macros | |
#define | NPS_COMMANDS_NB COMMANDS_NB |
Number of commands sent to the FDM of NPS. More... | |
Functions | |
void | sim_overwrite_ahrs (void) |
void | sim_overwrite_ins (void) |
void | nps_autopilot_init (enum NpsRadioControlType type, int num_script, char *js_dev) |
void | nps_autopilot_run_step (double time) |
void | nps_autopilot_run_systime_step (void) |
Variables | |
struct NpsAutopilot | nps_autopilot |
bool | nps_bypass_ahrs |
bool | nps_bypass_ins |
struct NpsAutopilot |
Definition at line 22 of file nps_autopilot.h.
Data Fields | ||
---|---|---|
double | commands[NPS_COMMANDS_NB] | |
bool | launch |
#define NPS_COMMANDS_NB COMMANDS_NB |
Number of commands sent to the FDM of NPS.
If MOTOR_MIXING_NB_MOTOR is defined (usually rotorcraft firmware) we have that many commands (one per motor), otherwise we default to the number of high level commands (COMMANDS_NB).
Definition at line 18 of file nps_autopilot.h.
Referenced by init_gazebo(), init_jsbsim(), nps_ap_data_loop(), nps_autopilot_run_step(), nps_fdm_init(), and nps_main_run_sim_step().
void nps_autopilot_init | ( | enum NpsRadioControlType | type, |
int | num_script, | ||
char * | js_dev | ||
) |
Definition at line 80 of file nps_autopilot_fixedwing.c.
References Ap, FALSE, Fbw, init, NpsAutopilot::launch, main_init(), nps_autopilot, nps_bypass_ahrs, NPS_BYPASS_AHRS, nps_bypass_ins, NPS_BYPASS_INS, nps_electrical_init(), nps_radio_control_init(), and TRUE.
Referenced by nps_radio_and_autopilot_init().
void nps_autopilot_run_step | ( | double | time | ) |
Definition at line 106 of file nps_autopilot_fixedwing.c.
References AGL_SONAR_NPS_ID, NpsSensors::airspeed, AIRSPEED_NPS_ID, NpsSensors::aoa, Ap, autopilot, autopilot_get_motors_on(), NpsSensors::baro, BARO_SIM_SENDER_ID, NpsAutopilot::commands, commands, MotorMixing::commands, DefaultChannel, DefaultDevice, Fbw, foo, gps_feed_value(), handle_periodic_tasks(), imu_feed_gyro_accel(), imu_feed_mag(), INCIDENCE_NPS_ID, pprz_autopilot::kill_throttle, NpsAutopilot::launch, pprz_autopilot::launch, main_event(), MAX_PPRZ, motor_mixing, nps_autopilot, nps_bypass_ahrs, nps_bypass_ins, NPS_COMMANDS_NB, nps_electrical_run_step(), nps_radio_control_available(), nps_sensors_airspeed_available(), nps_sensors_aoa_available(), nps_sensors_baro_available(), nps_sensors_gps_available(), nps_sensors_gyro_available(), nps_sensors_mag_available(), nps_sensors_sideslip_available(), nps_sensors_sonar_available(), nps_sensors_temperature_available(), PRINT_CONFIG_MSG(), sensors, NpsSensors::sideslip, sim_overwrite_ahrs(), sim_overwrite_ins(), NpsSensors::sonar, stateSetAirspeed_f(), NpsSensors::temp, NpsSensorBaro::value, NpsSensorTemperature::value, NpsSensorAngleOfAttack::value, NpsSensorSideSlip::value, NpsSensorAirspeed::value, and NpsSensorSonar::value.
Referenced by nps_main_run_sim_step().
void nps_autopilot_run_systime_step | ( | void | ) |
Definition at line 98 of file nps_autopilot_fixedwing.c.
References sys_tick_handler().
Referenced by nps_main_run_sim_step().
void sim_overwrite_ahrs | ( | void | ) |
Definition at line 253 of file nps_autopilot_fixedwing.c.
References NpsFdm::body_ecef_rotvel, fdm, NpsFdm::ltp_to_body_quat, QUAT_COPY, RATES_COPY, stateSetBodyRates_f(), and stateSetNedToBodyQuat_f().
Referenced by nps_autopilot_run_step().
void sim_overwrite_ins | ( | void | ) |
Definition at line 266 of file nps_autopilot_fixedwing.c.
References fdm, LLA_COPY, NpsFdm::lla_pos, LlaCoor_f::lon, NpsFdm::ltpprz_ecef_accel, NpsFdm::ltpprz_ecef_vel, NpsFdm::ltpprz_pos, State::ned_initialized_f, State::ned_initialized_i, state, stateSetAccelNed_f(), stateSetPositionNed_f(), stateSetPositionUtm_f(), stateSetSpeedNed_f(), State::utm_initialized_f, utm_of_lla_f(), VECT3_COPY, and UtmCoor_f::zone.
Referenced by ins_ned_to_state(), and nps_autopilot_run_step().
struct NpsAutopilot nps_autopilot |
Definition at line 63 of file nps_autopilot_fixedwing.c.
Referenced by nps_ap_data_loop(), nps_autopilot_init(), nps_autopilot_run_step(), nps_main_run_sim_step(), and nps_update_launch_from_dl().
bool nps_bypass_ahrs |
Definition at line 64 of file nps_autopilot_fixedwing.c.
Referenced by nps_autopilot_init(), and nps_autopilot_run_step().
bool nps_bypass_ins |
Definition at line 65 of file nps_autopilot_fixedwing.c.
Referenced by ins_ned_to_state(), nps_autopilot_init(), and nps_autopilot_run_step().