From ed0b0443c6278917b360a5c82005401df462d3c0 Mon Sep 17 00:00:00 2001 From: Timo Volkmann Date: Sat, 19 Dec 2020 11:49:58 +0100 Subject: [PATCH] added replay template --- core/datamodel.go | 4 +- templates/replay.html | 180 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 templates/replay.html diff --git a/core/datamodel.go b/core/datamodel.go index aab6103..45468bb 100644 --- a/core/datamodel.go +++ b/core/datamodel.go @@ -148,7 +148,7 @@ func ConvertUbxSensorData(msg interface{}) (*SensorData, error) { sd.HeadMotion = float64(v.HeadMot_dege5) / 1e+5 sd.HeadDevice = float64(v.HeadVeh_dege5) / 1e+5 sd.HeadingAcc = float64(v.HeadAcc_dege5) / 1e+5 - sd.Speed = float64(v.GSpeed_mm_s) / 3600 + sd.Speed = float64(v.GSpeed_mm_s) / 3.6e+3 case *ublox.HnrPvt: //logrus.Println("HNR-PVT") sd.itow = v.ITOW_ms @@ -161,7 +161,7 @@ func ConvertUbxSensorData(msg interface{}) (*SensorData, error) { sd.HeadMotion = float64(v.HeadMot_dege5) / 1e+5 sd.HeadDevice = float64(v.HeadVeh_dege5) / 1e+5 sd.HeadingAcc = float64(v.HeadAcc_dege5) / 1e+5 - sd.Speed = float64(v.GSpeed_mm_s) / 3600 + sd.Speed = float64(v.GSpeed_mm_s) / 3.6e+3 case *ublox.NavAtt: //logrus.Println("NAV-ATT") sd.itow = v.ITOW_ms diff --git a/templates/replay.html b/templates/replay.html new file mode 100644 index 0000000..7ba9b53 --- /dev/null +++ b/templates/replay.html @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + +
+

Click "Open" to create a connection to the server. +

+
+ + +

+ + +

+
+ + + + + + +
+
+
+ +
+
+ + + + + + +
+
+
+

Legende

+
Ublox
+
Smartphone
+
+
+
+
+
+

Smartphone

+
+
front
+
back
+
right
+
left
+
top
+
bottom
+
+
+ +
+

Ublox

+
+
front
+
back
+
right
+
left
+
top
+
bottom
+
+
+
+
+ + + + +
+ +
+ + + \ No newline at end of file