mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Removing TODOs.
If it needs to be done it will be done.
This commit is contained in:
parent
a0cca0c889
commit
7c2c5eb152
1 changed files with 0 additions and 4 deletions
|
@ -82,7 +82,6 @@ void configureIMU(
|
|||
pidProfile_t *initialPidProfile,
|
||||
accDeadband_t *initialAccDeadband,
|
||||
float accz_lpf_cutoff,
|
||||
//TODO: Move throttle angle correction code into flight/throttle_angle_correction.c
|
||||
uint16_t throttle_correction_angle
|
||||
)
|
||||
{
|
||||
|
@ -90,7 +89,6 @@ void configureIMU(
|
|||
pidProfile = initialPidProfile;
|
||||
accDeadband = initialAccDeadband;
|
||||
fc_acc = calculateAccZLowPassFilterRCTimeConstant(accz_lpf_cutoff);
|
||||
//TODO: Move throttle angle correction code into flight/throttle_angle_correction.c
|
||||
throttleAngleScale = calculateThrottleAngleScale(throttle_correction_angle);
|
||||
}
|
||||
|
||||
|
@ -101,7 +99,6 @@ void initIMU()
|
|||
gyroScaleRad = gyro.scale * (M_PIf / 180.0f) * 0.000001f;
|
||||
}
|
||||
|
||||
//TODO: Move throttle angle correction code into flight/throttle_angle_correction.c
|
||||
float calculateThrottleAngleScale(uint16_t throttle_correction_angle)
|
||||
{
|
||||
return (1800.0f / M_PIf) * (900.0f / throttle_correction_angle);
|
||||
|
@ -333,7 +330,6 @@ void computeIMU(rollAndPitchTrims_t *accelerometerTrims, uint8_t mixerMode)
|
|||
}
|
||||
}
|
||||
|
||||
//TODO: Move throttle angle correction code into flight/throttle_angle_correction.c
|
||||
int16_t calculateThrottleAngleCorrection(uint8_t throttle_correction_value)
|
||||
{
|
||||
float cosZ = EstG.V.Z / sqrtf(EstG.V.X * EstG.V.X + EstG.V.Y * EstG.V.Y + EstG.V.Z * EstG.V.Z);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue