- In run(), there are the lines
sp.add_wp(home[0],home[1],alt,speed,wait)
sp.land()
I think these should be
self.add_wp(home[0],home[1],alt,speed,wait)
self.land()
-
The definition of run() looks like this:
def run(self,home:list,pts:list[list[float]], alt:int, speed:int, wait:int):
but in Python3, this resulted in "TypeError: 'type' object is not subscriptable".
This modified definition does not result in an error:
def run(self,home:list,pts:list, alt:int, speed:int, wait:int):
sp.add_wp(home[0],home[1],alt,speed,wait)
sp.land()
I think these should be
self.add_wp(home[0],home[1],alt,speed,wait)
self.land()
The definition of run() looks like this:
def run(self,home:list,pts:list[list[float]], alt:int, speed:int, wait:int):
but in Python3, this resulted in "TypeError: 'type' object is not subscriptable".
This modified definition does not result in an error:
def run(self,home:list,pts:list, alt:int, speed:int, wait:int):