Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap PixhawkInstruction values in float() #5

Open
benjaminwp18 opened this issue Oct 5, 2024 · 0 comments
Open

Wrap PixhawkInstruction values in float() #5

benjaminwp18 opened this issue Oct 5, 2024 · 0 comments

Comments

@benjaminwp18
Copy link
Contributor

PixhawkInstruction values must be floats. Python is weird, so computed values should be passed through the float() function before being passed to PixhawkInstruction(). i.e.

PixhawkInstruction(
    forward=float(0.5),
    vertical=float(-0.25),
    author=PixhawkInstruction.MANUAL_CONTROL
)

Write instructions to that effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant