fix: realistic G-force test data with jitter and vertical bounce
This commit is contained in:
+3
-3
@@ -87,9 +87,9 @@ class TestDataGenerator:
|
||||
struct.pack_into("<f", buf, 244, random.uniform(-5000, 5000))
|
||||
struct.pack_into("<f", buf, 248, random.uniform(-50, 50))
|
||||
struct.pack_into("<f", buf, 252, random.uniform(-5000, 5000))
|
||||
struct.pack_into("<f", buf, 20, steering * 9.81 * 2) # lateral G
|
||||
struct.pack_into("<f", buf, 24, 0.0)
|
||||
struct.pack_into("<f", buf, 28, (throttle - brake) * 9.81 * 2) # longitudinal G
|
||||
struct.pack_into("<f", buf, 20, (steering * 9.81 * 2.5) + random.uniform(-1.2, 1.2)) # lateral G + jitter
|
||||
struct.pack_into("<f", buf, 24, random.uniform(-0.5, 0.5)) # vertical bounce
|
||||
struct.pack_into("<f", buf, 28, ((throttle - brake) * 9.81 * 2) + random.uniform(-1.5, 1.5)) # longitudinal G + jitter
|
||||
struct.pack_into("<f", buf, 256, speed_mps)
|
||||
struct.pack_into("<f", buf, 260, hp * 745.7)
|
||||
struct.pack_into("<f", buf, 264, torque)
|
||||
|
||||
Reference in New Issue
Block a user