Merge pull request #384 from aughey/betaflight
Setting gyro scale for fake sensors.
This commit is contained in:
commit
c74c5df73d
|
@ -1861,6 +1861,10 @@ void mspProcess(void)
|
||||||
waitForSerialPortToFinishTransmitting(candidatePort->port);
|
waitForSerialPortToFinishTransmitting(candidatePort->port);
|
||||||
stopMotors();
|
stopMotors();
|
||||||
handleOneshotFeatureChangeOnRestart();
|
handleOneshotFeatureChangeOnRestart();
|
||||||
|
// On real flight controllers, systemReset() will do a soft reset of the device,
|
||||||
|
// reloading the program. But to support offline testing this flag needs to be
|
||||||
|
// cleared so that the software doesn't continuously attempt to reboot itself.
|
||||||
|
isRebootScheduled = false;
|
||||||
systemReset();
|
systemReset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -240,6 +240,7 @@ bool fakeGyroDetect(gyro_t *gyro)
|
||||||
gyro->init = fakeGyroInit;
|
gyro->init = fakeGyroInit;
|
||||||
gyro->read = fakeGyroRead;
|
gyro->read = fakeGyroRead;
|
||||||
gyro->temperature = fakeGyroReadTemp;
|
gyro->temperature = fakeGyroReadTemp;
|
||||||
|
gyro->scale = 1.0f / 16.4f;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue