projects
/
gps-watch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common: Store GPS coordinates in radians, too.
[gps-watch.git]
/
test
/
gps_test.rs
diff --git
a/test/gps_test.rs
b/test/gps_test.rs
index b43e080c918251d514922ddb6b7e8ea726540a0a..1cff088019cb99a020477a8f0e2cd045d3dd7cb7 100644
(file)
--- a/
test/gps_test.rs
+++ b/
test/gps_test.rs
@@
-84,4
+84,6
@@
$GPGGA,110338.000,1234.5678,N,12345.6789,E,\
assert_eq!(1477998218, tap.unix_time);
assert_eq!(7545678, tap.latitude);
assert_eq!(74256789, tap.longitude);
+ assert_eq!(0.21949487565883447, tap.latitude_rad.to_f32());
+ assert_eq!(2.160042433347846, tap.longitude_rad.to_f32());
}