mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
More Jitter Enhancements for Naze target
remove debug Anti Jitter Enhancements for Naze target Jitter Optimalisation without emf avoidance
This commit is contained in:
parent
9ed1c46065
commit
4a492c611a
3 changed files with 64 additions and 21 deletions
|
@ -19,7 +19,6 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
#include "debug.h"
|
||||
|
||||
#include "common/axis.h"
|
||||
|
||||
|
@ -36,8 +35,6 @@
|
|||
|
||||
#include "sensors/acceleration.h"
|
||||
|
||||
#define DEBUG_IMU_SPEED
|
||||
|
||||
int16_t accADC[XYZ_AXIS_COUNT];
|
||||
|
||||
acc_t acc; // acc access functions
|
||||
|
@ -175,15 +172,10 @@ void applyAccelerationTrims(flightDynamicsTrims_t *accelerationTrims)
|
|||
|
||||
void updateAccelerationReadings(rollAndPitchTrims_t *rollAndPitchTrims)
|
||||
{
|
||||
#ifdef DEBUG_IMU_SPEED
|
||||
uint32_t time = micros();
|
||||
#endif
|
||||
if (!acc.read(accADC)) {
|
||||
return;
|
||||
}
|
||||
#ifdef DEBUG_IMU_SPEED
|
||||
debug[1] = micros() - time;
|
||||
#endif
|
||||
|
||||
alignSensors(accADC, accADC, accAlign);
|
||||
|
||||
if (!isAccelerationCalibrationComplete()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue