32 #ifndef ROSFLIGHT_FIRMWARE_TEST_BOARD_H 33 #define ROSFLIGHT_FIRMWARE_TEST_BOARD_H 43 uint16_t
rc_values[8] = {1500, 1500, 1000, 1500, 1500, 1500, 1500, 1500};
63 void serial_init(uint32_t baud_rate, uint32_t dev)
override;
64 void serial_write(
const uint8_t *src,
size_t len)
override;
79 void mag_read(
float mag[3])
override;
110 float rc_read(uint8_t channel)
override;
113 void pwm_init(uint32_t refresh_rate, uint16_t idle_pwm)
override;
115 void pwm_write(uint8_t channel,
float value)
override;
120 bool memory_write(
const void *src,
size_t len)
override;
138 void set_imu(
float *acc,
float *
gyro, uint64_t time_us);
139 void set_rc(uint16_t *values);
146 #endif // ROSLFIGHT_FIRMWARE_TEST_BOARD_H uint32_t clock_millis() override
void pwm_write(uint8_t channel, float value) override
static volatile int16_t gyro[3]
bool gnss_present() override
void board_reset(bool bootloader) override
void serial_init(uint32_t baud_rate, uint32_t dev) override
void pwm_disable() override
void backup_memory_clear()
void mag_read(float mag[3]) override
void backup_memory_write(const void *src, size_t len) override
bool new_imu_data() override
static constexpr size_t BACKUP_MEMORY_SIZE
void baro_update() override
void set_imu(float *acc, float *gyro, uint64_t time_us)
bool diff_pressure_present() override
uint16_t serial_bytes_available() override
void sensors_init() override
uint64_t clock_micros() override
void rc_init(rc_type_t rc_type) override
void set_rc(uint16_t *values)
bool backup_memory_read(void *dest, size_t len) override
float rc_read(uint8_t channel) override
void init_board() override
static volatile int16_t accel[3]
float battery_voltage_read() const override
bool sonar_present() override
GNSSFull gnss_full_read() override
void led1_toggle() override
uint8_t serial_read() override
void baro_read(float *pressure, float *temperature) override
void serial_flush() override
void gnss_update() override
bool gnss_has_new_data() override
void diff_pressure_read(float *diff_pressure, float *temperature) override
void battery_voltage_set_multiplier(double multiplier) override
void memory_init() override
void set_time(uint64_t time_us)
bool battery_voltage_present() const override
bool mag_present() override
bool baro_present() override
void sonar_update() override
void led0_toggle() override
void backup_memory_init() override
bool memory_read(void *dest, size_t len) override
void diff_pressure_update() override
bool battery_current_present() const override
bool imu_read(float accel[3], float *temperature, float gyro[3], uint64_t *time) override
void clock_delay(uint32_t milliseconds) override
void imu_not_responding_error() override
GNSSData gnss_read() override
void set_pwm_lost(bool lost)
void serial_write(const uint8_t *src, size_t len) override
void battery_current_set_multiplier(double multiplier) override
float battery_current_read() const override
bool memory_write(const void *src, size_t len) override
uint16_t num_sensor_errors()
void pwm_init(uint32_t refresh_rate, uint16_t idle_pwm) override
uint8_t backup_memory_[BACKUP_MEMORY_SIZE]
void mag_update() override
float sonar_read() override