This is what is actually running on all the picos.
bg/The PlatformIO project for the B-G431B-ESC1 using SimpleFOC.src/asservThe Pico SDK code for the Pico controlling the motors.src/actionThe Pico SDK code for the Pico controlling the actuators & the PAMIGAMI.src/dynamixel_sdkThe Dynamixel SDK with a Pico SDK Port Handler implemented.src/sharedCode shared across the motors and acuators controllers.include/Headers arranged in the same fashion as thesrc/folderpio/Code for the PIOs in the Picos.
-
In the
bg/PlatformIO project, there are 2 enviroments:leftfor the left BG.rightfor the right BG.
-
In the Pico SDK cmake project, there are 4 executables compiled:
main_asservfor the main robot's motor controller pico.main_actionfor the main robot's actuators controller pico.paminablefor the PAMInable pico.pamiserablefor the PAMIsérable pico.pamigamifor the PAMIGAMI pico, full LL, no HL, done in a night, quite bad.
-
For the
bg/PlatformIO project:- You might want to tweak sensor calibration values inside
bg/src/main.cppbefore using it. - You can either install the PlatformIO IDE and use it to build
- Or build it using the command line with PlatformIO Core:
- To do so, install PlatformIO Core.
- Then inside
bg/, runpio runto compile both enviroments. - Use
pio run -e left -t uploadto upload the left bg code. - Use
pio run -e right -t uploadto upload the right bg code.
- You might want to tweak sensor calibration values inside
-
For the Pico SDK cmake project
- Install the Pico SDK, make sure
PICO_SDK_PATHis set -
mkdir build cd build cmake .. make - You will find the executables listed previously in the
build/folder
- Install the Pico SDK, make sure