mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Cleanup baro/mag/gyro/acc method names from old sensors.c
This commit is contained in:
parent
7e76fd6995
commit
9f26018abd
12 changed files with 38 additions and 43 deletions
|
@ -11,12 +11,12 @@ uint16_t acc_1G = 256; // this is the 1G measured acceleration.
|
|||
gyro_t gyro; // gyro access functions
|
||||
sensor_align_e gyroAlign = 0;
|
||||
|
||||
void GYRO_SetCalibrationCycles(uint16_t calibrationCyclesRequired)
|
||||
void gyroSetCalibrationCycles(uint16_t calibrationCyclesRequired)
|
||||
{
|
||||
calibratingG = calibrationCyclesRequired;
|
||||
}
|
||||
|
||||
void GYRO_Common(void)
|
||||
void gyroCommon(void)
|
||||
{
|
||||
int axis;
|
||||
static int32_t g[3];
|
||||
|
@ -56,10 +56,10 @@ void GYRO_Common(void)
|
|||
gyroADC[axis] -= gyroZero[axis];
|
||||
}
|
||||
|
||||
void Gyro_getADC(void)
|
||||
void gyroGetADC(void)
|
||||
{
|
||||
// range: +/- 8192; +/- 2000 deg/sec
|
||||
gyro.read(gyroADC);
|
||||
alignSensors(gyroADC, gyroADC, gyroAlign);
|
||||
GYRO_Common();
|
||||
gyroCommon();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue