Skip to content

Commit 8304e65

Browse files
committed
Corrected radians bug in GPSPositionMeasurement.
1 parent 64ebec1 commit 8304e65

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ __pycache__
1919
# pixi environments
2020
.pixi
2121
*.egg-info
22+
.python-version
23+
pyproject.toml
24+
uv.lock

core/src/sim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,8 +831,8 @@ pub fn closed_loop(
831831
&& i % gps_interval == 0
832832
{
833833
let measurement = GPSPositionMeasurement {
834-
latitude: record.latitude.to_radians(),
835-
longitude: record.longitude.to_radians(),
834+
latitude: record.latitude,
835+
longitude: record.longitude,
836836
altitude: record.altitude,
837837
horizontal_noise_std: record.horizontal_accuracy.sqrt(),
838838
vertical_noise_std: record.vertical_accuracy,

0 commit comments

Comments
 (0)