only change orientation if course is > 20 degrees off
means we don't spin around quite as much, which is nice
This commit is contained in:
parent
eaa4ad895f
commit
6c3f019ab7
@ -302,9 +302,10 @@ label.readout {
|
||||
(when (not (bounds= old-bounds bounds))
|
||||
(fetch-tiles bounds app-state.tiles app-state.zoom)
|
||||
(set map-surface nil)))
|
||||
(when (> (math.abs (- app-state.orientation app-state.course)) 20)
|
||||
(set app-state.orientation
|
||||
(+ app-state.orientation
|
||||
(* 0.05 (- app-state.course app-state.orientation))))
|
||||
(* 0.05 (- app-state.course app-state.orientation)))))
|
||||
(each [name widget (pairs state-widgets)]
|
||||
(case name
|
||||
:speed (widget:set_label
|
||||
|
Loading…
Reference in New Issue
Block a user