Public Member Functions | 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

bool baro_present () override
 
void baro_read (float *pressure, float *temperature) override
 
void baro_update () 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
 
BackupData get_backup_data () override
 
bool gnss_has_new_data () override
 
bool gnss_present () override
 
GNSSRaw gnss_raw_read () override
 
GNSSData gnss_read () override
 
void gnss_update () override
 
bool has_backup_data () 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}
 
float gyro_ [3] = {0, 0, 0}
 
bool new_imu_ = false
 
bool rc_lost_ = false
 
uint16_t rc_values [8] = {0, 0, 0, 0, 0, 0, 0, 0}
 
uint64_t time_us_ = 0
 

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 41 of file test_board.h.

Member Function Documentation

bool rosflight_firmware::testBoard::baro_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 137 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 142 of file test_board.cpp.

void rosflight_firmware::testBoard::baro_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 141 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 72 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 83 of file test_board.cpp.

uint64_t rosflight_firmware::testBoard::clock_micros ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 79 of file test_board.cpp.

uint32_t rosflight_firmware::testBoard::clock_millis ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 75 of file test_board.cpp.

bool rosflight_firmware::testBoard::diff_pressure_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 144 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 149 of file test_board.cpp.

void rosflight_firmware::testBoard::diff_pressure_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 148 of file test_board.cpp.

BackupData rosflight_firmware::testBoard::get_backup_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 220 of file test_board.cpp.

bool rosflight_firmware::testBoard::gnss_has_new_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 174 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.

GNSSRaw rosflight_firmware::testBoard::gnss_raw_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 168 of file test_board.cpp.

GNSSData rosflight_firmware::testBoard::gnss_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 162 of file test_board.cpp.

void rosflight_firmware::testBoard::gnss_update ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 97 of file test_board.h.

bool rosflight_firmware::testBoard::has_backup_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 216 of file test_board.cpp.

void rosflight_firmware::testBoard::imu_not_responding_error ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 128 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 71 of file test_board.cpp.

void rosflight_firmware::testBoard::led0_off ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 208 of file test_board.cpp.

void rosflight_firmware::testBoard::led0_on ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 207 of file test_board.cpp.

void rosflight_firmware::testBoard::led0_toggle ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 209 of file test_board.cpp.

void rosflight_firmware::testBoard::led1_off ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 212 of file test_board.cpp.

void rosflight_firmware::testBoard::led1_on ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 211 of file test_board.cpp.

void rosflight_firmware::testBoard::led1_toggle ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 213 of file test_board.cpp.

bool rosflight_firmware::testBoard::mag_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 130 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 135 of file test_board.cpp.

void rosflight_firmware::testBoard::mag_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 134 of file test_board.cpp.

void rosflight_firmware::testBoard::memory_init ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 196 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 197 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 201 of file test_board.cpp.

bool rosflight_firmware::testBoard::new_imu_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 105 of file test_board.cpp.

uint16_t rosflight_firmware::testBoard::num_sensor_errors ( )
virtual

Implements rosflight_firmware::Board.

Definition at line 100 of file test_board.cpp.

void rosflight_firmware::testBoard::pwm_disable ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 193 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 192 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 191 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 182 of file test_board.cpp.

bool rosflight_firmware::testBoard::rc_lost ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 183 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 187 of file test_board.cpp.

void rosflight_firmware::testBoard::sensors_init ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 99 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 88 of file test_board.cpp.

void rosflight_firmware::testBoard::serial_flush ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 96 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 86 of file test_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 92 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 87 of file test_board.cpp.

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

Definition at line 58 of file test_board.cpp.

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

Definition at line 53 of file test_board.cpp.

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

Definition at line 40 of file test_board.cpp.

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

Definition at line 48 of file test_board.cpp.

bool rosflight_firmware::testBoard::sonar_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 151 of file test_board.cpp.

float rosflight_firmware::testBoard::sonar_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 156 of file test_board.cpp.

void rosflight_firmware::testBoard::sonar_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 155 of file test_board.cpp.

Member Data Documentation

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

Definition at line 48 of file test_board.h.

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

Definition at line 49 of file test_board.h.

bool rosflight_firmware::testBoard::new_imu_ = false
private

Definition at line 50 of file test_board.h.

bool rosflight_firmware::testBoard::rc_lost_ = false
private

Definition at line 47 of file test_board.h.

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

Definition at line 45 of file test_board.h.

uint64_t rosflight_firmware::testBoard::time_us_ = 0
private

Definition at line 46 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 Wed Jul 3 2019 19:59:31