Fix check delta on cam's

This commit is contained in:
Diogo Jesus 2024-03-21 14:30:34 +00:00
parent f145f296aa
commit 4d61a6b21d
1 changed files with 2 additions and 2 deletions

View File

@ -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