You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[4:56]
what i’m doing here is giving 10 degrees worth of leeway
[4:57]
so it’s ok to animate it if it wants to point to 0 degrees, but the radian has to be <= 5
[4:58]
from previous position
[4:58]
this should fix the frequent spinning issue
[5:00]
also, you mentioned the app wasn’t auto updating from prep to delivery. that’s fixed now. i was accidentally untracking right when they load the screen if status != enroute
[5:00]
the app should respond to the other states
The text was updated successfully, but these errors were encountered:
For posterity
https://bentonow.slack.com/archives/G0R0STM3R/p1458258709000026
josephlausf [4:51 PM]
ok, so here’s the issue with spinning car
[4:52]
when calculating the bearing, sometimes it would randomly return 0 degrees (edited)
[4:53]
which is why the car has a tendency to spin around to face north (edited)
[4:54]
to fix this, i’m doing this
[4:55]
if (
bearing != 0
||(bearing == 0 && (previousBearing <= 5 || previousBearing >= 355))
) {// animate
}
else {
// skip
}
[4:56]
what i’m doing here is giving 10 degrees worth of leeway
[4:57]
so it’s ok to animate it if it wants to point to 0 degrees, but the radian has to be <= 5
[4:58]
from previous position
[4:58]
this should fix the frequent spinning issue
[5:00]
also, you mentioned the app wasn’t auto updating from prep to delivery. that’s fixed now. i was accidentally untracking right when they load the screen if status != enroute
[5:00]
the app should respond to the other states
The text was updated successfully, but these errors were encountered: