32 #pragma GCC diagnostic push 33 #pragma GCC diagnostic ignored "-Wold-style-cast" 89 for (
size_t i = 0;
i < len;
i++)
148 volatile int16_t gyro_raw[3], accel_raw[3];
149 volatile int16_t raw_temp;
160 (*temperature) = (float)raw_temp / 340.0
f + 36.53
f;
162 if (accel[0] == 0 && accel[1] == 0 && accel[2] == 0)
355 return (
float)(
pwmRead(channel) - 1000) / 1000.0;
360 pwmWriteMotor(channel, static_cast<uint16_t>(value * 1000) + 1000);
437 #pragma GCC diagnostic pop void pwm_disable() override
void pwm_write(uint8_t channel, float value) override
uint16_t i2cGetErrorCounter(void)
uint16_t serial_bytes_available() override
static volatile int16_t gyro[3]
void diff_pressure_update() override
void pwmInit(bool useCPPM, bool usePwmFilter, bool fastPWM, uint32_t motorPwmRate, uint16_t idlePulseUsec)
void i2cInit(I2CDevice index)
void serial_init(uint32_t baud_rate, uint32_t dev) override
volatile uint32_t millis(void)
void sonar_update() override
void battery_current_set_multiplier(double multiplier) override
float sonarRead(uint8_t channel)
bool new_imu_data() override
void mag_update() override
void mb1242_async_update()
float sonar_read() override
uint32_t pwm_refresh_rate_
bool memory_read(void *dest, size_t len) override
void baro_update() override
void sensors_init() override
void mpu6050_async_read_all(volatile int16_t *accData, volatile int16_t *tempData, volatile int16_t *gyroData, volatile uint64_t *timeData)
void led1_toggle() override
void led0_toggle() override
void SetSysClock(bool overclock)
volatile uint64_t micros(void)
void mpu6050_init(bool enableInterrupt, uint16_t *acc1G, float *gyroScale, int boardVersion)
void ms4525_async_read(float *differential_pressure, float *temp)
void serial_flush() override
float battery_current_read() const override
void init_board() override
void hmc5883l_async_read(float *mag_data)
bool diff_pressure_present() override
bool i2cWrite(uint8_t addr_, uint8_t reg_, uint8_t data)
bool battery_current_present() const override
void diff_pressure_read(float *diff_pressure, float *temperature) override
bool baro_present() override
static volatile int16_t accel[3]
void memory_init() override
GNSSFull gnss_full_read() override
void bmp280_async_read(float *pres, float *temp)
void pwm_init(uint32_t refresh_rate, uint16_t idle_pwm) override
void initEEPROM(void)
Initialize Flash.
bool memory_write(const void *src, size_t len) override
void board_reset(bool bootloader) override
bool readEEPROM(void *dest, size_t len)
Read data from Flash.
uint16_t pwmRead(uint8_t channel)
float rc_read(uint8_t channel) override
bool imu_read(float accel[3], float *temperature, float gyro[3], uint64_t *time_us) override
void clock_delay(uint32_t milliseconds) override
uint8_t serial_read() override
void imu_not_responding_error() override
void battery_voltage_set_multiplier(double multiplier) override
void baro_read(float *pressure, float *temperature) override
uint32_t clock_millis() override
bool writeEEPROM(const void *src, size_t len)
Write data to Flash.
void serialWrite(serialPort_t *instance, uint8_t ch)
serialPort_t * uartOpen(USART_TypeDef *USARTx, serialReceiveCallbackPtr callback, uint32_t baudRate, portMode_t mode)
uint16_t num_sensor_errors() override
void hmc5883l_request_async_update()
bool battery_voltage_present() const override
GNSSData gnss_read() override
void bmp280_async_update()
void ms5611_async_update()
uint64_t clock_micros() override
float mb1242_async_read()
bool mag_present() override
void serial_write(const uint8_t *src, size_t len) override
bool sonar_present() override
void mag_read(float mag[3]) override
void ms4525_async_update()
uint8_t serialRead(serialPort_t *instance)
float battery_voltage_read() const override
void pwmWriteMotor(uint8_t index, uint16_t value)
bool gnss_has_new_data() override
void ms5611_async_read(float *pressure, float *temperature)
uint8_t serialTotalBytesWaiting(serialPort_t *instance)
void rc_init(rc_type_t rc_type) override