Skip to content

set_wp does not handle negative longitude #2

Description

@FabianSchwartau

The title basically says it all. I get:

Traceback (most recent call last):
File "rc.py", line 8, in
copter.set_wp(1, 1, 50.9103311, -10.5349744, 0, 10, 0, 0, 0)
File "MSP.py", line 194, in set_wp
payload += int(lon * 10000000).to_bytes(4, byteorder='little')#lon
OverflowError: can't convert negative int to unsigned

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions