Paparazzi UAS  v6.3_unstable
Paparazzi is a free software Unmanned Aircraft System.
sim_ap.c File Reference
#include <stdio.h>
#include <assert.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <time.h>
#include <string.h>
#include "std.h"
#include "main_ap.h"
#include "autopilot.h"
#include "modules/gps/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 "modules/core/commands.h"
#include "modules/datalink/datalink.h"
#include "modules/datalink/telemetry.h"
#include "generated/flight_plan.h"
#include "generated/modules.h"
#include <caml/mlvalues.h>
#include <caml/memory.h>
+ Include dependency graph for sim_ap.c:

Go to the source code of this file.

Macros

#define SIM_UPDATE_DL   TRUE
 

Functions

value sim_sys_time_task (value unit)
 needs to be called at SYS_TIME_FREQUENCY More...
 
value sim_periodic_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)
 

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
 
uint8_t ac_id
 

Macro Definition Documentation

◆ SIM_UPDATE_DL

#define SIM_UPDATE_DL   TRUE

Definition at line 40 of file sim_ap.c.

Function Documentation

◆ ftimeofday()

float ftimeofday ( void  )

Definition at line 67 of file sim_ap.c.

◆ get_commands()

value get_commands ( value  val_commands)

Definition at line 96 of file sim_ap.c.

References commands.

◆ set_datalink_message()

value set_datalink_message ( value  s)

Definition at line 107 of file sim_ap.c.

References dl_buffer, dl_msg_available, DlCheckAndParse(), DOWNLINK_DEVICE, ivy_tp, MSG_SIZE, s, and SIM_UPDATE_DL.

+ Here is the call graph for this function:

◆ sim_init()

value sim_init ( value  unit)

Definition at line 75 of file sim_ap.c.

References main_ap_init(), and unit.

+ Here is the call graph for this function:

◆ sim_periodic_task()

value sim_periodic_task ( value  unit)

Definition at line 60 of file sim_ap.c.

References main_ap_event(), main_ap_periodic(), and unit.

+ Here is the call graph for this function:

◆ sim_sys_time_task()

value sim_sys_time_task ( value  unit)

needs to be called at SYS_TIME_FREQUENCY

Definition at line 54 of file sim_ap.c.

References sys_tick_handler(), and unit.

+ Here is the call graph for this function:

◆ update_bat()

value update_bat ( value  bat)

Definition at line 83 of file sim_ap.c.

References electrical, and Electrical::vsupply.

◆ update_dl_status()

value update_dl_status ( value  dl_enabled)

Definition at line 89 of file sim_ap.c.

References ivy_tp.

Variable Documentation

◆ ac_id

◆ alt_roll_pgain

float alt_roll_pgain

Definition at line 36 of file sim_ap.c.

◆ gps_nb_ovrn

uint8_t gps_nb_ovrn

Definition at line 35 of file sim_ap.c.

◆ inflight_calib_mode

uint8_t inflight_calib_mode

Definition at line 33 of file sim_ap.c.

◆ ir_estim_mode

uint8_t ir_estim_mode

Definition at line 31 of file sim_ap.c.

◆ link_fbw_fbw_nb_err

uint8_t link_fbw_fbw_nb_err

Definition at line 35 of file sim_ap.c.

◆ link_fbw_nb_err

uint8_t link_fbw_nb_err

Definition at line 35 of file sim_ap.c.

◆ rc_event_1

bool rc_event_1

Definition at line 34 of file sim_ap.c.

◆ rc_event_2

bool rc_event_2

Definition at line 34 of file sim_ap.c.

◆ roll_rate_pgain

float roll_rate_pgain

Definition at line 37 of file sim_ap.c.

◆ vertical_mode

uint8_t vertical_mode

Definition at line 32 of file sim_ap.c.