Skip to content

Commit

Permalink
bblog sample rate fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rtlopez committed Aug 2, 2023
1 parent 04bd9e2 commit ee22bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Espfc/src/Blackbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class Blackbox
if(_model.magActive()) enabledSensors |= SENSOR_MAG;
if(_model.baroActive()) enabledSensors |= SENSOR_BARO;

gyro.sampleLooptime = 125; //_model.state.gyroTimer.interval;
gyro.sampleLooptime = _model.state.gyroTimer.interval;
targetPidLooptime = _model.state.loopTimer.interval;
activePidLoopDenom = _model.config.loopSync;

Expand Down
4 changes: 2 additions & 2 deletions lib/Espfc/src/Sensor/GyroSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class GyroSensor: public BaseSensor
_model.state.debug[0] = lrintf(_fft[i].peaks[0].freq);
_model.state.debug[1] = lrintf(_fft[i].peaks[1].freq);
_model.state.debug[2] = lrintf(_fft[i].peaks[2].freq);
_model.state.debug[3] = lrintf(degrees(_model.state.gyro[i]));
_model.state.debug[3] = lrintf(_fft[i].peaks[3].freq);
}
}
if(dynamicFilterEnabled && dynamicFilterUpdate)
Expand All @@ -216,7 +216,7 @@ class GyroSensor: public BaseSensor
if(dynamicFilterDebug)
{
_model.state.debug[i] = lrintf(freq);
if(i == _model.config.debugAxis) _model.state.debug[3] = lrintf(degrees(_model.state.gyro[i]));
if(i == _model.config.debugAxis) _model.state.debug[3] = lrintf(degrees(_model.state.gyroDynNotch[i]));
}
if(dynamicFilterEnabled && dynamicFilterUpdate)
{
Expand Down

0 comments on commit ee22bf6

Please sign in to comment.