BinghamtonRover / Arm-Firmware

Arduino IDE sketches to run on a Teensy MCU and control the rover arm and gripper
https://binghamtonrover.github.io/arm-firmware/
2 stars 0 forks source link

Create two `.ino` sketches with common code in a shared library #4

Closed Levi-Lesches closed 2 years ago

Levi-Lesches commented 2 years ago

This PR is kind of big because it's where we go from purely-C++ functions to full-fledged Arduino sketches that compile. The big source of complexity is the fact that the arm motors and the gripper motors will be separate, meaning they need two separate sketches that compile separately as well. To that end, several file-level changes are made:

The two sketches are mostly similar, the main difference being Arm.ino uses IK whereas Gripper.ino does not. They share the same layout: