Esempio n. 1
0
 def precmd(self, line):
     self.api.set_position(
         self.location['latitude'],
         self.location['longitude'],
         self.location['altitude']
     )
     return Cmd.precmd(self, line)
 def precmd(self, *args):
     '''
     call the hook _pre and delegate to plugins
     '''
     self._pre(*args)
     return Cmd.precmd(self, *args)