bluerobotics / bluerobotics/BlueOS

we should automate board identification on blueos

Open
#2,551 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Vue
Stars
453
Forks
151
Avg merge
1d 3h
Merged PRs (30d)
174

Description

I don't think we _need_ to add support to board one by one. all information we need to automate this should be present in the [hwdef files in ardupilot.](https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_HAL_ChibiOS/hwdef) parsing then might be annoying, though.

we could also do as is done in the uploader script, maybe:
```python
# default list of port names to look for autopilots
default_ports = ['/dev/serial/by-id/usb-Ardu*',
'/dev/serial/by-id/usb-3D*',
'/dev/serial/by-id/usb-APM*',
'/dev/serial/by-id/usb-Radio*',
'/dev/serial/by-id/usb-*_3DR_*',
'/dev/serial/by-id/usb-Hex_Technology_Limited*',
'/dev/serial/by-id/usb-Hex_ProfiCNC*',
'/dev/serial/by-id/usb-Holybro*',
'/dev/serial/by-id/usb-mRo*',
'/dev/serial/by-id/usb-modalFC*',
'/dev/serial/by-id/usb-Auterion*',
'/dev/serial/by-id/usb-*-BL_*',
'/dev/serial/by-id/usb-*_BL_*',
'/dev/serial/by-id/usb-Swift-Flyer*',
'/dev/serial/by-id/usb-CubePilot*',
'/dev/serial/by-id/usb-Qiotek*',
'/dev/tty.usbmodem*']
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the linked ArduPilot hwdef files and the existing uploader script, since no BlueOS file or entry point is named. Determine how board information and port patterns can be derived, then define completion as automatic board identification without adding each board individually.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot, robotics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.