#include <test_board.h>
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 } |
Definition at line 40 of file test_board.h.
|
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.
|
inlineoverridevirtual |
Implements rosflight_firmware::Board.
Definition at line 132 of file test_board.h.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 128 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 140 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 164 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 169 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 168 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 201 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 205 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 209 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 188 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 192 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 196 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 73 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 84 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 80 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 76 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 171 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 176 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 175 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 221 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 227 of file test_board.cpp.
|
inlineoverridevirtual |
Implements rosflight_firmware::Board.
Definition at line 93 of file test_board.h.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 215 of file test_board.cpp.
|
inlineoverridevirtual |
Implements rosflight_firmware::Board.
Definition at line 94 of file test_board.h.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 155 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 116 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 69 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 260 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 259 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 261 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 264 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 263 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 265 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 157 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 162 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 161 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 248 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 249 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 253 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 106 of file test_board.cpp.
|
virtual |
Implements rosflight_firmware::Board.
Definition at line 101 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 245 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 244 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 243 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 234 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 235 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 239 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 100 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 89 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 97 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 87 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 93 of file test_board.cpp.
|
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.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 178 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 183 of file test_board.cpp.
|
overridevirtual |
Implements rosflight_firmware::Board.
Definition at line 182 of file test_board.cpp.
|
private |
Definition at line 46 of file test_board.h.
|
private |
Definition at line 50 of file test_board.h.
|
staticprivate |
Definition at line 49 of file test_board.h.
|
private |
Definition at line 47 of file test_board.h.
|
private |
Definition at line 48 of file test_board.h.
|
private |
Definition at line 45 of file test_board.h.
|
private |
Definition at line 43 of file test_board.h.
|
private |
Definition at line 44 of file test_board.h.