mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
In doing so accelerometer sensor and trim code had to be cleaned. Added a new method to buzzer.c to avoid exposing toggleBeep. Renamed current_profile to current_profile_index to avoid confusion.
20 lines
567 B
C
20 lines
567 B
C
#pragma once
|
|
|
|
// Type of accelerometer used/detected
|
|
typedef enum AccelSensors {
|
|
ACC_DEFAULT = 0,
|
|
ACC_ADXL345 = 1,
|
|
ACC_MPU6050 = 2,
|
|
ACC_MMA8452 = 3,
|
|
ACC_BMA280 = 4,
|
|
ACC_NONE = 5
|
|
} AccelSensors;
|
|
|
|
extern uint8_t accHardware;
|
|
extern sensor_align_e accAlign;
|
|
extern acc_t acc;
|
|
extern uint16_t calibratingA;
|
|
|
|
void accSetCalibrationCycles(uint16_t calibrationCyclesRequired);
|
|
void updateAccelerationReadings(rollAndPitchTrims_t *rollAndPitchTrims);
|
|
void setAccelerationTrims(int16_flightDynamicsTrims_t *accelerationTrimsToUse);
|