Public Member Functions | Private Types | Private Attributes | List of all members
rosflight_firmware::BreezyBoard Class Reference

#include <breezy_board.h>

Inheritance diagram for rosflight_firmware::BreezyBoard:
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
 
 BreezyBoard ()
 
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_us) 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 () override
 
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
 
bool sonar_present () override
 
float sonar_read () override
 
void sonar_update () override
 

Private Types

enum  { SONAR_NONE, SONAR_I2C, SONAR_PWM }
 
enum  { BARO_NONE, BARO_BMP280, BARO_MS5611 }
 

Private Attributes

float _accel_scale = 1.0
 
int _board_revision = 2
 
float _gyro_scale = 1.0
 
uint8_t baro_type = BARO_NONE
 
std::function< void(void)> imu_callback_
 
uint64_t imu_time_us_
 
bool new_imu_data_
 
uint16_t pwm_idle_pwm_ = 1000
 
uint32_t pwm_refresh_rate_ = 490
 
rc_type_t rc_type_ = RC_TYPE_PPM
 
serialPort_tSerial1
 
uint8_t sonar_type = SONAR_NONE
 

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 50 of file breezy_board.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
SONAR_NONE 
SONAR_I2C 
SONAR_PWM 

Definition at line 63 of file breezy_board.h.

anonymous enum
private
Enumerator
BARO_NONE 
BARO_BMP280 
BARO_MS5611 

Definition at line 74 of file breezy_board.h.

Constructor & Destructor Documentation

rosflight_firmware::BreezyBoard::BreezyBoard ( )

Definition at line 50 of file breezy_board.cpp.

Member Function Documentation

bool rosflight_firmware::BreezyBoard::baro_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 224 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 210 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::baro_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 195 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 60 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 77 of file breezy_board.cpp.

uint64_t rosflight_firmware::BreezyBoard::clock_micros ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 72 of file breezy_board.cpp.

uint32_t rosflight_firmware::BreezyBoard::clock_millis ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 67 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::diff_pressure_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 246 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 256 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::diff_pressure_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 251 of file breezy_board.cpp.

BackupData rosflight_firmware::BreezyBoard::get_backup_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 414 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::gnss_has_new_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 377 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::gnss_present ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 128 of file breezy_board.h.

GNSSRaw rosflight_firmware::BreezyBoard::gnss_raw_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 371 of file breezy_board.cpp.

GNSSData rosflight_firmware::BreezyBoard::gnss_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 365 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::gnss_update ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 132 of file breezy_board.h.

bool rosflight_firmware::BreezyBoard::has_backup_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 410 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::imu_not_responding_error ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 172 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 149 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::init_board ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 52 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led0_off ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 388 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led0_on ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 384 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led0_toggle ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 392 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led1_off ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 401 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led1_on ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 397 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led1_toggle ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 405 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::mag_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 185 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 179 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::mag_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 190 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::memory_init ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 349 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 354 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 359 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::new_imu_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 144 of file breezy_board.cpp.

uint16_t rosflight_firmware::BreezyBoard::num_sensor_errors ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 139 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::pwm_disable ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 325 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 318 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 337 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 312 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::rc_lost ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 342 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 332 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::sensors_init ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 115 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 98 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::serial_flush ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 108 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 84 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 103 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 90 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::sonar_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 270 of file breezy_board.cpp.

float rosflight_firmware::BreezyBoard::sonar_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 292 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::sonar_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 262 of file breezy_board.cpp.

Member Data Documentation

float rosflight_firmware::BreezyBoard::_accel_scale = 1.0
private

Definition at line 60 of file breezy_board.h.

int rosflight_firmware::BreezyBoard::_board_revision = 2
private

Definition at line 58 of file breezy_board.h.

float rosflight_firmware::BreezyBoard::_gyro_scale = 1.0
private

Definition at line 61 of file breezy_board.h.

uint8_t rosflight_firmware::BreezyBoard::baro_type = BARO_NONE
private

Definition at line 80 of file breezy_board.h.

std::function<void(void)> rosflight_firmware::BreezyBoard::imu_callback_
private

Definition at line 56 of file breezy_board.h.

uint64_t rosflight_firmware::BreezyBoard::imu_time_us_
private

Definition at line 83 of file breezy_board.h.

bool rosflight_firmware::BreezyBoard::new_imu_data_
private

Definition at line 82 of file breezy_board.h.

uint16_t rosflight_firmware::BreezyBoard::pwm_idle_pwm_ = 1000
private

Definition at line 73 of file breezy_board.h.

uint32_t rosflight_firmware::BreezyBoard::pwm_refresh_rate_ = 490
private

Definition at line 72 of file breezy_board.h.

rc_type_t rosflight_firmware::BreezyBoard::rc_type_ = RC_TYPE_PPM
private

Definition at line 71 of file breezy_board.h.

serialPort_t* rosflight_firmware::BreezyBoard::Serial1
private

Definition at line 54 of file breezy_board.h.

uint8_t rosflight_firmware::BreezyBoard::sonar_type = SONAR_NONE
private

Definition at line 69 of file breezy_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