Public Member Functions | Private Attributes | Static Private Attributes | List of all members
rosflight_firmware::testBoard Class Reference

#include <test_board.h>

Inheritance diagram for rosflight_firmware::testBoard:
Inheritance graph
[legend]

Public Member Functions

void backup_memory_clear (size_t len) override
 
void backup_memory_clear ()
 
void backup_memory_init () override
 
bool backup_memory_read (void *dest, size_t len) override
 
void backup_memory_write (const void *src, size_t len) override
 
bool baro_present () override
 
void baro_read (float *pressure, float *temperature) override
 
void baro_update () override
 
bool battery_current_present () const override
 
float battery_current_read () const override
 
void battery_current_set_multiplier (double multiplier) override
 
bool battery_voltage_present () const override
 
float battery_voltage_read () const override
 
void battery_voltage_set_multiplier (double multiplier) override
 
void board_reset (bool bootloader) override
 
void clock_delay (uint32_t milliseconds) override
 
uint64_t clock_micros () override
 
uint32_t clock_millis () override
 
bool diff_pressure_present () override
 
void diff_pressure_read (float *diff_pressure, float *temperature) override
 
void diff_pressure_update () override
 
GNSSFull gnss_full_read () override
 
bool gnss_has_new_data () override
 
bool gnss_present () override
 
GNSSData gnss_read () override
 
void gnss_update () override
 
void imu_not_responding_error () override
 
bool imu_read (float accel[3], float *temperature, float gyro[3], uint64_t *time) override
 
void init_board () override
 
void led0_off () override
 
void led0_on () override
 
void led0_toggle () override
 
void led1_off () override
 
void led1_on () override
 
void led1_toggle () override
 
bool mag_present () override
 
void mag_read (float mag[3]) override
 
void mag_update () override
 
void memory_init () override
 
bool memory_read (void *dest, size_t len) override
 
bool memory_write (const void *src, size_t len) override
 
bool new_imu_data () override
 
uint16_t num_sensor_errors ()
 
void pwm_disable () override
 
void pwm_init (uint32_t refresh_rate, uint16_t idle_pwm) override
 
void pwm_write (uint8_t channel, float value) override
 
void rc_init (rc_type_t rc_type) override
 
bool rc_lost () override
 
float rc_read (uint8_t channel) override
 
void sensors_init () override
 
uint16_t serial_bytes_available () override
 
void serial_flush () override
 
void serial_init (uint32_t baud_rate, uint32_t dev) override
 
uint8_t serial_read () override
 
void serial_write (const uint8_t *src, size_t len) override
 
void set_imu (float *acc, float *gyro, uint64_t time_us)
 
void set_pwm_lost (bool lost)
 
void set_rc (uint16_t *values)
 
void set_time (uint64_t time_us)
 
bool sonar_present () override
 
float sonar_read () override
 
void sonar_update () override
 

Private Attributes

float acc_ [3] = {0, 0, 0}
 
uint8_t backup_memory_ [BACKUP_MEMORY_SIZE]
 
float gyro_ [3] = {0, 0, 0}
 
bool new_imu_ = false
 
bool rc_lost_ = false
 
uint16_t rc_values [8] = {1500, 1500, 1000, 1500, 1500, 1500, 1500, 1500}
 
uint64_t time_us_ = 0
 

Static Private Attributes

static constexpr size_t BACKUP_MEMORY_SIZE {1024}
 

Additional Inherited Members

- Public Types inherited from rosflight_firmware::Board
enum  rc_type_t { RC_TYPE_PPM = 0, RC_TYPE_SBUS = 1 }
 

Detailed Description

Definition at line 40 of file test_board.h.

Member Function Documentation

void rosflight_firmware::testBoard::backup_memory_clear ( size_t  len)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 146 of file test_board.cpp.

void rosflight_firmware::testBoard::backup_memory_clear ( )

Definition at line 150 of file test_board.cpp.

void rosflight_firmware::testBoard::backup_memory_init ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 132 of file test_board.h.

bool rosflight_firmware::testBoard::backup_memory_read ( void *  dest,
size_t  len 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 128 of file test_board.cpp.

void rosflight_firmware::testBoard::backup_memory_write ( const void *  src,
size_t  len 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 140 of file test_board.cpp.

bool rosflight_firmware::testBoard::baro_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 164 of file test_board.cpp.

void rosflight_firmware::testBoard::baro_read ( float *  pressure,
float *  temperature 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 169 of file test_board.cpp.

void rosflight_firmware::testBoard::baro_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 168 of file test_board.cpp.

bool rosflight_firmware::testBoard::battery_current_present ( ) const
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 201 of file test_board.cpp.

float rosflight_firmware::testBoard::battery_current_read ( ) const
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 205 of file test_board.cpp.

void rosflight_firmware::testBoard::battery_current_set_multiplier ( double  multiplier)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 209 of file test_board.cpp.

bool rosflight_firmware::testBoard::battery_voltage_present ( ) const
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 188 of file test_board.cpp.

float rosflight_firmware::testBoard::battery_voltage_read ( ) const
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 192 of file test_board.cpp.

void rosflight_firmware::testBoard::battery_voltage_set_multiplier ( double  multiplier)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 196 of file test_board.cpp.

void rosflight_firmware::testBoard::board_reset ( bool  bootloader)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 73 of file test_board.cpp.

void rosflight_firmware::testBoard::clock_delay ( uint32_t  milliseconds)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 84 of file test_board.cpp.

uint64_t rosflight_firmware::testBoard::clock_micros ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 80 of file test_board.cpp.

uint32_t rosflight_firmware::testBoard::clock_millis ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 76 of file test_board.cpp.

bool rosflight_firmware::testBoard::diff_pressure_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 171 of file test_board.cpp.

void rosflight_firmware::testBoard::diff_pressure_read ( float *  diff_pressure,
float *  temperature 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 176 of file test_board.cpp.

void rosflight_firmware::testBoard::diff_pressure_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 175 of file test_board.cpp.

GNSSFull rosflight_firmware::testBoard::gnss_full_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 221 of file test_board.cpp.

bool rosflight_firmware::testBoard::gnss_has_new_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 227 of file test_board.cpp.

bool rosflight_firmware::testBoard::gnss_present ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 93 of file test_board.h.

GNSSData rosflight_firmware::testBoard::gnss_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 215 of file test_board.cpp.

void rosflight_firmware::testBoard::gnss_update ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 94 of file test_board.h.

void rosflight_firmware::testBoard::imu_not_responding_error ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 155 of file test_board.cpp.

bool rosflight_firmware::testBoard::imu_read ( float  accel[3],
float *  temperature,
float  gyro[3],
uint64_t *  time 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 116 of file test_board.cpp.

void rosflight_firmware::testBoard::init_board ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 69 of file test_board.cpp.

void rosflight_firmware::testBoard::led0_off ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 260 of file test_board.cpp.

void rosflight_firmware::testBoard::led0_on ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 259 of file test_board.cpp.

void rosflight_firmware::testBoard::led0_toggle ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 261 of file test_board.cpp.

void rosflight_firmware::testBoard::led1_off ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 264 of file test_board.cpp.

void rosflight_firmware::testBoard::led1_on ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 263 of file test_board.cpp.

void rosflight_firmware::testBoard::led1_toggle ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 265 of file test_board.cpp.

bool rosflight_firmware::testBoard::mag_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 157 of file test_board.cpp.

void rosflight_firmware::testBoard::mag_read ( float  mag[3])
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 162 of file test_board.cpp.

void rosflight_firmware::testBoard::mag_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 161 of file test_board.cpp.

void rosflight_firmware::testBoard::memory_init ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 248 of file test_board.cpp.

bool rosflight_firmware::testBoard::memory_read ( void *  dest,
size_t  len 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 249 of file test_board.cpp.

bool rosflight_firmware::testBoard::memory_write ( const void *  src,
size_t  len 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 253 of file test_board.cpp.

bool rosflight_firmware::testBoard::new_imu_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 106 of file test_board.cpp.

uint16_t rosflight_firmware::testBoard::num_sensor_errors ( )
virtual

Implements rosflight_firmware::Board.

Definition at line 101 of file test_board.cpp.

void rosflight_firmware::testBoard::pwm_disable ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 245 of file test_board.cpp.

void rosflight_firmware::testBoard::pwm_init ( uint32_t  refresh_rate,
uint16_t  idle_pwm 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 244 of file test_board.cpp.

void rosflight_firmware::testBoard::pwm_write ( uint8_t  channel,
float  value 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 243 of file test_board.cpp.

void rosflight_firmware::testBoard::rc_init ( rc_type_t  rc_type)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 234 of file test_board.cpp.

bool rosflight_firmware::testBoard::rc_lost ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 235 of file test_board.cpp.

float rosflight_firmware::testBoard::rc_read ( uint8_t  channel)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 239 of file test_board.cpp.

void rosflight_firmware::testBoard::sensors_init ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 100 of file test_board.cpp.

uint16_t rosflight_firmware::testBoard::serial_bytes_available ( void  )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 89 of file test_board.cpp.

void rosflight_firmware::testBoard::serial_flush ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 97 of file test_board.cpp.

void rosflight_firmware::testBoard::serial_init ( uint32_t  baud_rate,
uint32_t  dev 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 87 of file test_board.cpp.

uint8_t rosflight_firmware::testBoard::serial_read ( void  )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 93 of file test_board.cpp.

void rosflight_firmware::testBoard::serial_write ( const uint8_t *  src,
size_t  len 
)
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 88 of file test_board.cpp.

void rosflight_firmware::testBoard::set_imu ( float *  acc,
float *  gyro,
uint64_t  time_us 
)

Definition at line 57 of file test_board.cpp.

void rosflight_firmware::testBoard::set_pwm_lost ( bool  lost)

Definition at line 52 of file test_board.cpp.

void rosflight_firmware::testBoard::set_rc ( uint16_t *  values)

Definition at line 39 of file test_board.cpp.

void rosflight_firmware::testBoard::set_time ( uint64_t  time_us)

Definition at line 47 of file test_board.cpp.

bool rosflight_firmware::testBoard::sonar_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 178 of file test_board.cpp.

float rosflight_firmware::testBoard::sonar_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 183 of file test_board.cpp.

void rosflight_firmware::testBoard::sonar_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 182 of file test_board.cpp.

Member Data Documentation

float rosflight_firmware::testBoard::acc_[3] = {0, 0, 0}
private

Definition at line 46 of file test_board.h.

uint8_t rosflight_firmware::testBoard::backup_memory_[BACKUP_MEMORY_SIZE]
private

Definition at line 50 of file test_board.h.

constexpr size_t rosflight_firmware::testBoard::BACKUP_MEMORY_SIZE {1024}
staticprivate

Definition at line 49 of file test_board.h.

float rosflight_firmware::testBoard::gyro_[3] = {0, 0, 0}
private

Definition at line 47 of file test_board.h.

bool rosflight_firmware::testBoard::new_imu_ = false
private

Definition at line 48 of file test_board.h.

bool rosflight_firmware::testBoard::rc_lost_ = false
private

Definition at line 45 of file test_board.h.

uint16_t rosflight_firmware::testBoard::rc_values[8] = {1500, 1500, 1000, 1500, 1500, 1500, 1500, 1500}
private

Definition at line 43 of file test_board.h.

uint64_t rosflight_firmware::testBoard::time_us_ = 0
private

Definition at line 44 of file test_board.h.


The documentation for this class was generated from the following files:


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Sat May 9 2020 03:17:00