Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
sensors_hitl.c File Reference
#include "modules/sensors/sensors_hitl.h"
#include "modules/imu/imu.h"
#include "modules/gps/gps.h"
#include "modules/core/abi.h"
#include "modules/energy/electrical.h"
#include "generated/airframe.h"
#include "modules/datalink/datalink.h"
#include "modules/datalink/telemetry.h"
#include "nps_sensors_params_common.h"
+ Include dependency graph for sensors_hitl.c:

Go to the source code of this file.

Data Structures

struct  ImuHitl
 

Functions

void sensors_hitl_init (void)
 
void sensors_hitl_periodic (void)
 
void sensors_hitl_parse_HITL_IMU (uint8_t *buf)
 
void sensors_hitl_parse_HITL_GPS (uint8_t *buf)
 
void sensors_hitl_parse_HITL_AIR_DATA (uint8_t *buf)
 
void sensors_hitl_event (void)
 
void imu_feed_gyro_accel (void)
 
void imu_feed_mag (void)
 
void gps_feed_value (void)
 

Variables

struct ImuHitl imu_hitl
 
struct GpsState gps_hitl
 
bool gps_has_fix
 
static bool sensors_hitl_msg_available = false
 
static uint8_t sensors_hitl_dl_buffer [MSG_SIZE]
 
static struct pprz_transport sensors_hitl_tp
 

Data Structure Documentation

◆ ImuHitl

struct ImuHitl

Definition at line 34 of file sensors_hitl.c.

+ Collaboration diagram for ImuHitl:
Data Fields
struct Int32Vect3 accel
uint8_t accel_available
struct Int32Rates gyro
uint8_t gyro_available
struct Int32Vect3 mag
uint8_t mag_available

Function Documentation

◆ gps_feed_value()

void gps_feed_value ( void  )

Definition at line 237 of file sensors_hitl.c.

◆ imu_feed_gyro_accel()

void imu_feed_gyro_accel ( void  )

Definition at line 235 of file sensors_hitl.c.

◆ imu_feed_mag()

void imu_feed_mag ( void  )

Definition at line 236 of file sensors_hitl.c.

◆ sensors_hitl_event()

◆ sensors_hitl_init()

◆ sensors_hitl_parse_HITL_AIR_DATA()

void sensors_hitl_parse_HITL_AIR_DATA ( uint8_t buf)

Definition at line 191 of file sensors_hitl.c.

References AIRSPEED_NPS_ID, BARO_SIM_SENDER_ID, get_sys_time_usec(), and INCIDENCE_NPS_ID.

+ Here is the call graph for this function:

◆ sensors_hitl_parse_HITL_GPS()

◆ sensors_hitl_parse_HITL_IMU()

◆ sensors_hitl_periodic()

void sensors_hitl_periodic ( void  )

Definition at line 89 of file sensors_hitl.c.

References electrical, and Electrical::vsupply.

Variable Documentation

◆ gps_has_fix

bool gps_has_fix

Definition at line 46 of file sensors_hitl.c.

Referenced by sensors_hitl_init(), and sensors_hitl_parse_HITL_GPS().

◆ gps_hitl

struct GpsState gps_hitl

Definition at line 1 of file sensors_hitl.c.

Referenced by sensors_hitl_parse_HITL_GPS().

◆ imu_hitl

struct ImuHitl imu_hitl

◆ sensors_hitl_dl_buffer

uint8_t sensors_hitl_dl_buffer[MSG_SIZE]
static

Definition at line 49 of file sensors_hitl.c.

Referenced by sensors_hitl_event().

◆ sensors_hitl_msg_available

bool sensors_hitl_msg_available = false
static

Definition at line 48 of file sensors_hitl.c.

Referenced by sensors_hitl_event().

◆ sensors_hitl_tp

struct pprz_transport sensors_hitl_tp
static

Definition at line 49 of file sensors_hitl.c.

Referenced by sensors_hitl_event(), and sensors_hitl_init().