Skip to content

A couple of bugs in run() #1

@kpbuvic

Description

@kpbuvic
  1. 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()

  1. 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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions