2022-04-06, 04:11 PM
What I wanted to know if that those slow iterations are caused by the GPS sentences being send out.
Now that the GPS time is fixed, you need to compare the output with GPS enabled and disabled.
Sean disabled this in master here:
--- a/pypilot/nmea.py
+++ b/pypilot/nmea.py
@@ -467,8 +467,9 @@ class Nmea(object):
self.send_nmea('APMWV,%.3f,R,%.3f,N,A' % (wind.direction.value, wind.speed.value))
elif name == 'rudder':
self.send_nmea('APRSA,%.3f,A,,' % self.sensors.rudder.angle.value)
- elif name == 'gps':
- self.send_nmea(self.sensors.gps.getnmea())
+ # too slow? make more tests!
+ #elif name == 'gps':
+ # self.send_nmea(self.sensors.gps.getnmea())
self.nmea_times[name] = t
t5 = time.monotonic()
Now that the GPS time is fixed, you need to compare the output with GPS enabled and disabled.
Sean disabled this in master here:
--- a/pypilot/nmea.py
+++ b/pypilot/nmea.py
@@ -467,8 +467,9 @@ class Nmea(object):
self.send_nmea('APMWV,%.3f,R,%.3f,N,A' % (wind.direction.value, wind.speed.value))
elif name == 'rudder':
self.send_nmea('APRSA,%.3f,A,,' % self.sensors.rudder.angle.value)
- elif name == 'gps':
- self.send_nmea(self.sensors.gps.getnmea())
+ # too slow? make more tests!
+ #elif name == 'gps':
+ # self.send_nmea(self.sensors.gps.getnmea())
self.nmea_times[name] = t
t5 = time.monotonic()