Skip to content

[DRAFT] Dry run powerboard flashing in pi setup script#3778

Draft
nycrat wants to merge 3 commits into
UBC-Thunderbots:masterfrom
nycrat:avah/fix_platformio_power_board_flashing
Draft

[DRAFT] Dry run powerboard flashing in pi setup script#3778
nycrat wants to merge 3 commits into
UBC-Thunderbots:masterfrom
nycrat:avah/fix_platformio_power_board_flashing

Conversation

@nycrat

@nycrat nycrat commented Jun 16, 2026

Copy link
Copy Markdown
Member

Description

We get this error message when running the powerboard deploy script:

platformio:

fatal: [robert.local]: FAILED! => {"changed": true, "cmd": ["/opt/tbotspython/bin/platformio", "run", "--disable-auto-clean", "-t", "nobuild", "-t", "upload", "-d", "/home/robot/powerloop/powerloop_main_workdir"], "delta": "0:02:06.458360", "end": "2026-06-12 23:54:18.310095", "msg": "non-zero return code", "rc": 1, "start": "2026-06-12 23:52:11.851735", "stderr": "HTTPClientError: ", "stderr_lines": ["HTTPClientError: "], "stdout": "Processing pico32 (platform: espressif32; board: pico32; framework: arduino)\n--------------------------------------------------------------------------------\nPlatform Manager: Installing espressif32", "stdout_lines": ["Processing pico32 (platform: espressif32; board: pico32; framework: arduino)", "--------------------------------------------------------------------------------", "Platform Manager: Installing espressif32"]} 

Platformio attempts to install the espressif32 platform, but the robot usually doesn't have internet access. This PR adds a dry-run of the powerboard flashing in the setup script of the pi while it has internet access so that it installs all the necessary dependencies ahead of time.

Testing Done

NOT TESTED YET

Resolved Issues

(didn't write issue for this)

Length Justification and Key Files to Review

N/A

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

@williamckha williamckha force-pushed the avah/fix_platformio_power_board_flashing branch from b4d263a to be394ec Compare June 16, 2026 21:48
@nycrat nycrat force-pushed the avah/fix_platformio_power_board_flashing branch from ea7b11a to be394ec Compare June 16, 2026 21:56
@nycrat nycrat marked this pull request as draft June 23, 2026 21:44
@nycrat nycrat changed the title Install espressif32 platform in pi setup script [DRAFT] Install espressif32 platform in pi setup script Jun 24, 2026
@nycrat nycrat changed the title [DRAFT] Install espressif32 platform in pi setup script [DRAFT] Dry run powerboard flashing in pi setup script Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants