code: def _rewind(self):
          '''reset state on rewind'''
          self.messages = { 'MAV' : self }
          self.flightmode = "UNKNOWN"
          self.percent = 0
          if self.clock:
              self.clock.rewind_event(f _rewind(self):
          '''reset state on rewind'''
          self.messages = { 'MAV' : self }
          self.flightmode = "UNKNOWN"
          self.percent = 0
          if self.clock:
              self.clock.rewind_event()
docs: reset state on rewind