DUNE: Uniform Navigational Environment  2022.04.1
Sensors::Keller::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onResourceAcquisition (void)
 
bool openSocket (void)
 
void onEntityResolution (void)
 
void onResourceRelease (void)
 
void onResourceInitialization (void)
 
void consume (const IMC::GpsFix *msg)
 
void consume (const IMC::VehicleMedium *msg)
 
void calibrate (void)
 
bool write (uint8_t *bfr, int len)
 
bool read (void)
 
ParserResults parse (uint8_t *bfr, uint8_t len)
 
bool interpret (void)
 
void initialize (void)
 
void zero (void)
 
void reportEntityState (void)
 
void task (void)
 

Public Attributes

IO::Handle * m_handle
 
bool m_echo
 
uint8_t m_msg_read_pressure [5]
 
uint8_t m_msg_read_temperature [5]
 
IMC::Pressure m_pressure
 
IMC::Depth m_depth
 
IMC::Temperature m_temperature
 
bool m_calibrated
 
int m_entity_id
 
ParserStates m_parser_state
 
uint8_t m_parser_cmd
 
uint8_t m_parser_data [c_parser_data_size]
 
uint8_t m_parser_data_len
 
uint16_t m_parser_data_crc
 
uint16_t m_parser_packet_crc
 
float m_channel_readout
 
Time::Counter< float > m_wdog
 
unsigned m_crc_err_count
 
Counter< double > m_state_timer
 
size_t m_sample_count
 
size_t m_faults_count
 
size_t m_timeout_count
 
unsigned m_gps_eid
 
Arguments m_args
 

Static Public Attributes

static const unsigned c_parser_data_size
 
static const unsigned c_max_crc_err
 

Constructor & Destructor Documentation

◆ Task()

Member Function Documentation

◆ calibrate()

void Sensors::Keller::Task::calibrate ( void  )
inline

Calibrate device.

◆ consume() [1/2]

void Sensors::Keller::Task::consume ( const IMC::GpsFix *  msg)
inline

◆ consume() [2/2]

void Sensors::Keller::Task::consume ( const IMC::VehicleMedium *  msg)
inline

◆ initialize()

◆ interpret()

◆ onEntityResolution()

void Sensors::Keller::Task::onEntityResolution ( void  )
inline

◆ onResourceAcquisition()

void Sensors::Keller::Task::onResourceAcquisition ( void  )
inline

◆ onResourceInitialization()

void Sensors::Keller::Task::onResourceInitialization ( void  )
inline

◆ onResourceRelease()

void Sensors::Keller::Task::onResourceRelease ( void  )
inline

◆ onUpdateParameters()

◆ openSocket()

bool Sensors::Keller::Task::openSocket ( void  )
inline

◆ parse()

◆ read()

bool Sensors::Keller::Task::read ( void  )
inline

◆ reportEntityState()

void Sensors::Keller::Task::reportEntityState ( void  )
inline

◆ task()

void Sensors::Keller::Task::task ( void  )
inline

◆ write()

bool Sensors::Keller::Task::write ( uint8_t *  bfr,
int  len 
)
inline

◆ zero()

void Sensors::Keller::Task::zero ( void  )
inline

Member Data Documentation

◆ c_max_crc_err

const unsigned Sensors::Keller::Task::c_max_crc_err
static

◆ c_parser_data_size

const unsigned Sensors::Keller::Task::c_parser_data_size
static

◆ m_args

Arguments Sensors::Keller::Task::m_args

◆ m_calibrated

bool Sensors::Keller::Task::m_calibrated

◆ m_channel_readout

float Sensors::Keller::Task::m_channel_readout

◆ m_crc_err_count

unsigned Sensors::Keller::Task::m_crc_err_count

◆ m_depth

IMC::Depth Sensors::Keller::Task::m_depth

◆ m_echo

bool Sensors::Keller::Task::m_echo

◆ m_entity_id

int Sensors::Keller::Task::m_entity_id

◆ m_faults_count

size_t Sensors::Keller::Task::m_faults_count

Faults count.

◆ m_gps_eid

unsigned Sensors::Keller::Task::m_gps_eid

GPS source entity.

◆ m_handle

IO::Handle* Sensors::Keller::Task::m_handle

Serial port handle.

◆ m_msg_read_pressure

uint8_t Sensors::Keller::Task::m_msg_read_pressure[5]

◆ m_msg_read_temperature

uint8_t Sensors::Keller::Task::m_msg_read_temperature[5]

◆ m_parser_cmd

uint8_t Sensors::Keller::Task::m_parser_cmd

◆ m_parser_data

uint8_t Sensors::Keller::Task::m_parser_data[c_parser_data_size]

◆ m_parser_data_crc

uint16_t Sensors::Keller::Task::m_parser_data_crc

◆ m_parser_data_len

uint8_t Sensors::Keller::Task::m_parser_data_len

◆ m_parser_packet_crc

uint16_t Sensors::Keller::Task::m_parser_packet_crc

◆ m_parser_state

ParserStates Sensors::Keller::Task::m_parser_state

◆ m_pressure

IMC::Pressure Sensors::Keller::Task::m_pressure

◆ m_sample_count

size_t Sensors::Keller::Task::m_sample_count

Sample count.

◆ m_state_timer

Counter<double> Sensors::Keller::Task::m_state_timer

Entity state timer.

◆ m_temperature

IMC::Temperature Sensors::Keller::Task::m_temperature

◆ m_timeout_count

size_t Sensors::Keller::Task::m_timeout_count

Timeout count.

◆ m_wdog

Time::Counter<float> Sensors::Keller::Task::m_wdog
Collaboration diagram for Sensors::Keller::Task:
Collaboration graph