mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
Use double for storing time instead of float
Float precision may be not enough after some time of operating
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
The main loop is running at 1000 Hz. All the dataflow is happening through global variables (for simplicity):
|
||||
|
||||
* `t` *(float)* — current step time, *s*.
|
||||
* `t` *(double)* — current step time, *s*.
|
||||
* `dt` *(float)* — time delta between the current and previous steps, *s*.
|
||||
* `gyro` *(Vector)* — data from the gyroscope, *rad/s*.
|
||||
* `acc` *(Vector)* — acceleration data from the accelerometer, *m/s<sup>2</sup>*.
|
||||
|
Reference in New Issue
Block a user