-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add support to more (all?) ardupilot serial boards #3025
base: master
Are you sure you want to change the base?
Conversation
0305c9e
to
d54ee21
Compare
dae4a7a
to
619e3b4
Compare
@@ -16,13 +16,355 @@ | |||
from typedefs import FirmwareFormat, FlightController, Platform, PlatformType | |||
|
|||
|
|||
def get_board_id(platform: Platform) -> int: | |||
def get_board_id(board: Union[FlightController, str]) -> int: | |||
print(board) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lost debug code
ardupilot_board_ids = { | ||
Platform.Pixhawk1: 9, | ||
Platform.Pixhawk4: 50, | ||
Platform.Pixhawk6X: 53, | ||
Platform.Pixhawk6C: 56, | ||
Platform.CubeOrange: 140, | ||
"PX4_FMU_V1": 5, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should refactor typedefs.Platform no ? It would be nice to unify both implementation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can, yes. I was trying to not touch stuff that currently works.
We could leave this PR for after 1.4 and then I can rework it to unify everything.
print(f"Total platform mappings: {platform_count}") | ||
return | ||
|
||
# If file is invalid or too old, download and process new data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesnt look like we are checking the age of the file anywhere
619e3b4
to
edfc650
Compare
I'm treating this a side-quest as I progress on my KakuteH7 plane
This should add support to all ardupilot boards
TODO:
generate boards.json on CI