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

void backup_memory_clear (size_t len) override
 
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
 
 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
 
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_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
 
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 49 of file breezy_board.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
SONAR_NONE 
SONAR_I2C 
SONAR_PWM 

Definition at line 59 of file breezy_board.h.

anonymous enum
private
Enumerator
BARO_NONE 
BARO_BMP280 
BARO_MS5611 

Definition at line 70 of file breezy_board.h.

Constructor & Destructor Documentation

rosflight_firmware::BreezyBoard::BreezyBoard ( )

Definition at line 47 of file breezy_board.cpp.

Member Function Documentation

void rosflight_firmware::BreezyBoard::backup_memory_clear ( size_t  len)
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 176 of file breezy_board.h.

void rosflight_firmware::BreezyBoard::backup_memory_init ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 164 of file breezy_board.h.

bool rosflight_firmware::BreezyBoard::backup_memory_read ( void *  dest,
size_t  len 
)
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 165 of file breezy_board.h.

void rosflight_firmware::BreezyBoard::backup_memory_write ( const void *  src,
size_t  len 
)
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 171 of file breezy_board.h.

bool rosflight_firmware::BreezyBoard::baro_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 220 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 206 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::baro_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 193 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 319 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 323 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 327 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 306 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 310 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 314 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 57 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 74 of file breezy_board.cpp.

uint64_t rosflight_firmware::BreezyBoard::clock_micros ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 69 of file breezy_board.cpp.

uint32_t rosflight_firmware::BreezyBoard::clock_millis ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 64 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::diff_pressure_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 242 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 252 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::diff_pressure_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 247 of file breezy_board.cpp.

GNSSFull rosflight_firmware::BreezyBoard::gnss_full_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 392 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::gnss_has_new_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 398 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::gnss_present ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 124 of file breezy_board.h.

GNSSData rosflight_firmware::BreezyBoard::gnss_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 386 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::gnss_update ( )
inlineoverridevirtual

Implements rosflight_firmware::Board.

Definition at line 126 of file breezy_board.h.

void rosflight_firmware::BreezyBoard::imu_not_responding_error ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 170 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 146 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::init_board ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 49 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led0_off ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 410 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led0_on ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 405 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led0_toggle ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 415 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led1_off ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 425 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led1_on ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 420 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::led1_toggle ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 430 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::mag_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 183 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 177 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::mag_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 188 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::memory_init ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 370 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 375 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 380 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::new_imu_data ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 141 of file breezy_board.cpp.

uint16_t rosflight_firmware::BreezyBoard::num_sensor_errors ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 136 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::pwm_disable ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 346 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 339 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 358 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 333 of file breezy_board.cpp.

bool rosflight_firmware::BreezyBoard::rc_lost ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 363 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 353 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::sensors_init ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 112 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

Definition at line 95 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::serial_flush ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 105 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 81 of file breezy_board.cpp.

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

Implements rosflight_firmware::Board.

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

bool rosflight_firmware::BreezyBoard::sonar_present ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 266 of file breezy_board.cpp.

float rosflight_firmware::BreezyBoard::sonar_read ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 288 of file breezy_board.cpp.

void rosflight_firmware::BreezyBoard::sonar_update ( )
overridevirtual

Implements rosflight_firmware::Board.

Definition at line 258 of file breezy_board.cpp.

Member Data Documentation

float rosflight_firmware::BreezyBoard::_accel_scale = 1.0
private

Definition at line 56 of file breezy_board.h.

int rosflight_firmware::BreezyBoard::_board_revision = 2
private

Definition at line 54 of file breezy_board.h.

float rosflight_firmware::BreezyBoard::_gyro_scale = 1.0
private

Definition at line 57 of file breezy_board.h.

uint8_t rosflight_firmware::BreezyBoard::baro_type = BARO_NONE
private

Definition at line 76 of file breezy_board.h.

uint64_t rosflight_firmware::BreezyBoard::imu_time_us_
private

Definition at line 79 of file breezy_board.h.

bool rosflight_firmware::BreezyBoard::new_imu_data_
private

Definition at line 78 of file breezy_board.h.

uint16_t rosflight_firmware::BreezyBoard::pwm_idle_pwm_ = 1000
private

Definition at line 69 of file breezy_board.h.

uint32_t rosflight_firmware::BreezyBoard::pwm_refresh_rate_ = 490
private

Definition at line 68 of file breezy_board.h.

rc_type_t rosflight_firmware::BreezyBoard::rc_type_ = RC_TYPE_PPM
private

Definition at line 67 of file breezy_board.h.

serialPort_t* rosflight_firmware::BreezyBoard::Serial1
private

Definition at line 52 of file breezy_board.h.

uint8_t rosflight_firmware::BreezyBoard::sonar_type = SONAR_NONE
private

Definition at line 65 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 Fri Oct 9 2020 03:17:21