Пример #1
0
 def age_corrections_callback(self, sbp_msg, **metadata):
     age_msg = MsgAgeCorrections(sbp_msg)
     if age_msg.age != 0xFFFF:
         self.age_corrections = age_msg.age / 10.0
     else:
         self.age_corrections = None
     self.last_age_corr_receipt_time = monotonic()
Пример #2
0
 def age_corrections_callback(self, sbp_msg, **metadata):
     age_msg = MsgAgeCorrections(sbp_msg)
     if age_msg.age != 0xFFFF:
         self.age_corrections = age_msg.age / 10.0
     else:
         self.age_corrections = None