Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
#include <stdio.h>
#include <assert.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <time.h>
#include <string.h>
#include "std.h"
#include "inter_mcu.h"
#include "autopilot.h"
#include "subsystems/gps.h"
#include "generated/settings.h"
#include "firmwares/fixedwing/nav.h"
#include "firmwares/fixedwing/stabilization/stabilization_attitude.h"
#include "firmwares/fixedwing/guidance/guidance_v.h"
#include "subsystems/commands.h"
#include "firmwares/fixedwing/main_ap.h"
#include "subsystems/datalink/datalink.h"
#include "subsystems/datalink/telemetry.h"
#include "generated/flight_plan.h"
#include "generated/modules.h"
#include <caml/mlvalues.h>
#include <caml/memory.h>
Go to the source code of this file.
Macros | |
#define | MODULES_C |
Functions | |
value | sim_sys_time_task (value unit) |
needs to be called at SYS_TIME_FREQUENCY More... | |
value | sim_periodic_task (value unit) |
value | sim_monitor_task (value unit) |
value | sim_nav_task (value unit) |
float | ftimeofday (void) |
value | sim_init (value unit) |
value | update_bat (value bat) |
value | update_dl_status (value dl_enabled) |
value | get_commands (value val_commands) |
value | set_datalink_message (value s) |
void | adc_buf_channel (void *a, void *b, void *c) |
Required by electrical. More... | |
Variables | |
uint8_t | ir_estim_mode |
uint8_t | vertical_mode |
uint8_t | inflight_calib_mode |
bool | rc_event_1 |
bool | rc_event_2 |
uint8_t | gps_nb_ovrn |
uint8_t | link_fbw_fbw_nb_err |
uint8_t | link_fbw_nb_err |
float | alt_roll_pgain |
float | roll_rate_pgain |
uint16_t | datalink_time = 0 |
uint16_t | datalink_nb_msgs = 0 |
uint8_t | ac_id |
void adc_buf_channel | ( | void * | a, |
void * | b, | ||
void * | c | ||
) |
value get_commands | ( | value | val_commands | ) |
value set_datalink_message | ( | value | s | ) |
Definition at line 134 of file sim_ap.c.
References dl_buffer, dl_msg_available, DlCheckAndParse(), DOWNLINK_DEVICE, ivy_tp, and MSG_SIZE.
value sim_init | ( | value | unit | ) |
Definition at line 102 of file sim_ap.c.
References init_ap(), init_fbw(), and unit.
value sim_monitor_task | ( | value | unit | ) |
Definition at line 79 of file sim_ap.c.
References monitor_task(), and unit.
value sim_nav_task | ( | value | unit | ) |
Definition at line 85 of file sim_ap.c.
References navigation_task(), and unit.
value sim_periodic_task | ( | value | unit | ) |
Definition at line 62 of file sim_ap.c.
References attitude_loop(), autopilot_periodic(), electrical_periodic(), event_task_ap(), event_task_fbw(), periodic_task_fbw(), reporting_task(), sensors_task(), and unit.
value sim_sys_time_task | ( | value | unit | ) |
needs to be called at SYS_TIME_FREQUENCY
Definition at line 56 of file sim_ap.c.
References sys_tick_handler(), and unit.
value update_bat | ( | value | bat | ) |
Definition at line 110 of file sim_ap.c.
References electrical, and Electrical::vsupply.
value update_dl_status | ( | value | dl_enabled | ) |
uint8_t ac_id |
Definition at line 45 of file sim_ap.c.
Referenced by acInfoCalcPositionEnu_f(), acInfoCalcPositionEnu_i(), acInfoCalcPositionLla_f(), acInfoCalcPositionLla_i(), acInfoCalcPositionUtm_f(), acInfoCalcPositionUtm_i(), acInfoCalcVelocityEnu_f(), acInfoCalcVelocityEnu_i(), acInfoGetClimb(), acInfoGetCourse(), acInfoGetGspeed(), acInfoGetItow(), acInfoGetPositionEnu_f(), acInfoGetPositionEnu_i(), acInfoGetPositionLla_f(), acInfoGetPositionLla_i(), acInfoGetPositionUtm_f(), acInfoGetPositionUtm_i(), acInfoGetVelocityEnu_f(), acInfoGetVelocityEnu_i(), acInfoSetPositionEnu_f(), acInfoSetPositionEnu_i(), acInfoSetPositionLla_f(), acInfoSetPositionLla_i(), acInfoSetPositionUtm_f(), acInfoSetPositionUtm_i(), acInfoSetVelocityEnu_f(), acInfoSetVelocityEnu_i(), bluegiga_receive(), firmware_parse_msg(), formation_flight(), parseFormationSlot(), parseFormationStatus(), potential_task(), start_formation(), stop_formation(), tcas_periodic_task_1Hz(), trigger_ext_periodic(), and windturbine_periodic().
uint16_t datalink_nb_msgs = 0 |
Definition at line 42 of file sim_ap.c.
Referenced by downlink_init(), send_downlink(), and telemetry_intermcu_on_msg().
uint16_t datalink_time = 0 |
Definition at line 41 of file sim_ap.c.
Referenced by main_periodic(), main_periodic_task(), monitor_task(), send_downlink(), telemetry_intermcu_on_msg(), and xtend_rssi_periodic().
uint8_t gps_nb_ovrn |
Definition at line 38 of file sim_ap.c.
Referenced by firmware_parse_msg().
uint8_t vertical_mode |
Definition at line 35 of file sim_ap.c.
Referenced by guidance_v_from_nav(), nav_heli_spinup_run(), and nav_heli_spinup_setup().