mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 15:13:41 +02:00
New values, slower learning.
This commit is contained in:
parent
5ba1d3a28c
commit
b88380db6f
2 changed files with 5 additions and 5 deletions
|
@ -257,7 +257,7 @@ void SerialInterface::readData(float deltaTime) {
|
|||
if (fabsf(error[i]) < EPSILON) {
|
||||
continue;
|
||||
}
|
||||
const float LEARNING_RATE = 0.01f;
|
||||
const float LEARNING_RATE = 0.001f;
|
||||
float rateSum = fabsf(_lastRotationRates.x) + fabsf(_lastRotationRates.y) + fabsf(_lastRotationRates.z);
|
||||
if (rateSum > EPSILON) {
|
||||
for (int j = 0; j < 3; j++) {
|
||||
|
|
|
@ -32,12 +32,12 @@ public:
|
|||
_lastAcceleration(0, 0, 0),
|
||||
_lastRotationRates(0, 0, 0),
|
||||
_angularVelocityToLinearAccel( // experimentally derived initial values
|
||||
0.001f, -0.008f, 0.020f,
|
||||
0.003f, -0.003f, 0.025f,
|
||||
0.017f, 0.007f, 0.029f),
|
||||
0.003f, -0.001f, -0.006f,
|
||||
-0.005f, -0.001f, -0.006f,
|
||||
0.010f, 0.004f, 0.007f),
|
||||
_angularAccelToLinearAccel( // experimentally derived initial values
|
||||
0.0f, 0.0f, 0.002f,
|
||||
0.0f, 0.0f, 0.002f,
|
||||
0.0f, 0.0f, 0.001f,
|
||||
-0.002f, -0.002f, 0.0f)
|
||||
{}
|
||||
|
||||
|
|
Loading…
Reference in a new issue