mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 11:59:50 +03:00
Gyro scaled output result not needed in RAM
This commit is contained in:
parent
167849cee8
commit
73fa1c59b1
4 changed files with 17 additions and 8 deletions
|
@ -67,8 +67,5 @@ void Gyro::wakeup()
|
|||
outputs[0] = rad2RESX(atan2f(accValues[1], accValues[2]));
|
||||
outputs[1] = rad2RESX(atan2f(-accValues[0], accValues[2]));
|
||||
|
||||
scaled_outputs[0] = limit(-RESX, (int)(outputs[0] - g_eeGeneral.gyroOffset * RESX/180) * (180 / (GYRO_MAX_DEFAULT + g_eeGeneral.gyroMax)), RESX);
|
||||
scaled_outputs[1] = limit(-RESX, outputs[1] * (180 / (GYRO_MAX_DEFAULT + g_eeGeneral.gyroMax)), RESX);
|
||||
|
||||
// TRACE("%d %d", values[0], values[1]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue