fixed INS when no GPS fix
This commit is contained in:
parent
0540cc465a
commit
44772557ba
@ -69,8 +69,9 @@ class INS {
|
||||
}
|
||||
|
||||
private static function move(dir:Null<Pos3>) {
|
||||
Log.debug('INS move: $dir');
|
||||
var pos = GPS.getPosition();
|
||||
if (pos == null || dir == null)
|
||||
return;
|
||||
var newPos = pos + dir;
|
||||
GPS.setINSPosition(newPos);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user