Fix check delta on cam's
This commit is contained in:
parent
f145f296aa
commit
4d61a6b21d
|
|
@ -680,8 +680,8 @@ int lightship_check() {
|
||||||
itss_space_get();
|
itss_space_get();
|
||||||
|
|
||||||
// Check heading delta > 4º
|
// Check heading delta > 4º
|
||||||
int diff = epv.space.heading - lightship->last_pos.heading;
|
int diff = ((epv.space.heading - lightship->last_pos.heading) + 180) % 360 - 180;
|
||||||
if (abs(diff) > 40) rv = 1;
|
if (diff > 40) rv = 1;
|
||||||
|
|
||||||
if (!rv) {
|
if (!rv) {
|
||||||
// Check speed delta > 0.5 m/s
|
// Check speed delta > 0.5 m/s
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue