PittSailbot / Sailbot

University of Pittsburgh's Sailbot Club (2019-2025)! Competing at the annual International Robotic Sailing Regatta. https://www.sailbot.org/
https://pittsailbot.github.io
Other
4 stars 1 forks source link

Python/C++ Bindings #64

Closed aaron4522 closed 2 weeks ago

aaron4522 commented 1 month ago

Most sensor libraries are implemented in C++ only. We are currently using the Teensy to interface with these sensors and libraries and forwarding that data to the Pi.

Binding C++ code to our Pi Python packages means that we skip using the Teensy entirely and we get to avoid having to rewrite everything in Python. We'd just need to update the pin outs to the Pi's GPIO.

This will be critical for our mini testing boat since the plan is to only have the Pi.

aaron4522 commented 4 weeks ago

Seems impractical, as sensors using Arduino.h libraries would need to be rewritten and require significant time. Also Pi does not support any analog input, which means another device is necessary.

Using Pi5 + Microcontroller combo seems much more achievable

aaron4522 commented 2 weeks ago

Worth revisiting later? Seems possible, but will be a pain. Sticking with the current pi+microcontroller setup will be safer.