Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
system_state.h File Reference

Go to the source code of this file.

Enumerations

enum  availability_bits {
  GNSS_AVAILABLE = 1 , D_GNSS_AVAILABLE = 2 , MTI_SENSOR_AVAILABE = 0x10 , FXOS_SENSOR_AVAILABLE = 0x20 ,
  L3GD20_SENSOR_AVAILABLE = 0x40 , MS5611_STATIC_AVAILABLE = 0x80 , PITOT_SENSOR_AVAILABLE = 0x200 , AIR_SENSOR_AVAILABLE = 0x400 ,
  USART_1_OUTPUT_ACTIVE = 0x800 , USB_OUTPUT_ACTIVE = 0x1000 , BLUEZ_OUTPUT_ACTIVE = 0x2000 , CAN_OUTPUT_ACTIVE = 0x4000 ,
  USART_2_OUTPUT_ACTIVE = 0x8000
}
 

Functions

void update_system_state_set (unsigned value)
 
void update_system_state_clear (unsigned value)
 
bool essential_sensors_available (bool need_DGNSS)
 

Variables

uint32_t system_state
 bits collected from availability_bits
 

Enumeration Type Documentation

◆ availability_bits

Enumerator
GNSS_AVAILABLE 
D_GNSS_AVAILABLE 
MTI_SENSOR_AVAILABE 
FXOS_SENSOR_AVAILABLE 
L3GD20_SENSOR_AVAILABLE 
MS5611_STATIC_AVAILABLE 
PITOT_SENSOR_AVAILABLE 
AIR_SENSOR_AVAILABLE 
USART_1_OUTPUT_ACTIVE 
USB_OUTPUT_ACTIVE 
BLUEZ_OUTPUT_ACTIVE 
CAN_OUTPUT_ACTIVE 
USART_2_OUTPUT_ACTIVE 

Definition at line 11 of file system_state.h.

Function Documentation

◆ essential_sensors_available()

bool essential_sensors_available ( bool  need_DGNSS)
inline

◆ update_system_state_clear()

void update_system_state_clear ( unsigned  value)
inline

Definition at line 37 of file system_state.h.

References system_state.

◆ update_system_state_set()

void update_system_state_set ( unsigned  value)
inline

Definition at line 32 of file system_state.h.

References system_state.

Variable Documentation

◆ system_state

uint32_t system_state
extern

bits collected from availability_bits

Definition at line 59 of file sensor_data_analyzer.cpp.

Referenced by CAN_output(), essential_sensors_available(), update_system_state_clear(), and update_system_state_set().