I’m searching through the OpenROV source code to find where the control for the 6 servo / ESC ports are. I’m just getting started but my goal is to modify the code for a 6 thruster design. Or would I be able to simply do this with a plugin?
The idea is that you will be totally able to do this through plugins. The challenge being that we don’t have other control system plugins available to model your own after yet. They are coming! We have a RC Truck conversion that I’ll probably add next.
Take a look at:
Inside they designate which servo ports they want loaded in to motors:
The actual defined values are currently in the controlboard.cpp file:
Awesome. I’m looking forward to your updates / examples. One other question, if I may, is there somewhere that identifies the pin numbers? Looking at the control board schematic I see jumpers “J20” and “J21” and rows “D6” through “D11”. Are pins 6, 7, and 8 in the code the same as pins D6, D7, and D8 on the controlboard?
J20 and J21 are the physical connectors that are stuffed into the circuit board. D6, D7, and D8 refer to the Arduino definitions of digital I/O pins, and yes, are the same as pins 6,7, and 8 in the Arduino (Controller Board) code.
Thanks Walt. That clears that up.