Skip to content

Code fixes: drive mode, Linux robot, CI - #561

Merged
thias15 merged 8 commits into
masterfrom
thias15/code-fixes
Oct 23, 2026
Merged

thias15 merged 8 commits into
masterfrom
thias15/code-fixes

Conversation

@thias15

@thias15 thias15 commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator
  • Robot app: the drive mode is kept after using the phone or web controller. currentDriveMode was never updated, so connecting the controller saved Game as the mode to restore, and the status sent to the controller always said Game. The mode is now read from the vehicle. This redoes Unify the driveMode storage and fetching - from ControlsFragment.vehicle.driveMode, instead of ControlsFragment.currentDriveMode. #498 on the current code, with Jacob Wu as co-author.
  • Linux robot:
    • adds pandas to the requirements
    • keeps OpenVINO below 2026 (openvino.runtime was removed in 2026)
    • test_infer.py finds the repo path itself instead of using a hard-coded one
    • README: the policy requirements path after the move, and no manual path step for the test
  • Controller release APK: built for ARM only (android-arm, android-arm64), like the robot app. This drops x86_64, which is mainly the emulator, and makes the APK smaller.
  • Firmware CI: changes that only touch firmware/**/*.md no longer start the firmware builds.
  • .git-blame-ignore-revs: git blame skips the Java formatting commit from Move the robot apps into robot/ #560. GitHub uses this file automatically; locally, run git config blame.ignoreRevsFile .git-blame-ignore-revs.

To test the drive mode fix on a phone:

  1. Select Joystick mode.
  2. Connect and disconnect the phone controller.
  3. Check that the robot is still in Joystick mode.

thias15 and others added 6 commits October 21, 2026 14:10
currentDriveMode was never updated, so connecting the phone or web controller saved GAME as the mode to restore, and the status sent to the controller always said GAME. Read the mode from the vehicle instead.

Co-authored-by: Jacob Wu <wuyijun1129@hotmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Switching from phone to web control overwrites the saved drive mode with temporary DUAL mode in all four fragments, causing incorrect restoration.

1 open issue
What changed in this PR

This PR addresses Android drive-mode handling, updates Linux robot setup after the repository move, and refines release and CI behavior.

Changes:

  • Uses the vehicle’s drive mode for controller status and mode restoration.
  • Updates Linux dependencies, automatic test-path discovery, and translated setup instructions.
  • Limits controller release APKs to ARM, skips firmware builds for Markdown-only changes, and excludes the Java formatting commit from blame.
File Description
robot/​linux/​tests/​test_infer.py Derives the repository path automatically.
robot/​linux/​requirements.txt Adds pandas and bounds OpenVINO dependencies.
robot/​linux/​README.zh-CN.md Updates Chinese setup and test-path instructions.
robot/​linux/​README.md Updates English setup and test-path instructions.
robot/​linux/​README.fr-FR.md Updates French setup and test-path instructions.
robot/​linux/​README.es-ES.md Updates Spanish setup and test-path instructions.
robot/​linux/​README.de-DE.md Updates German setup and test-path instructions.
robot/​android/​app/​src/​main/​java/​org/​openbot/​app/​robot/​robot/​FreeRoamFragment.java Reads vehicle mode when entering controller modes.
robot/​android/​app/​src/​main/​java/​org/​openbot/​app/​robot/​objectNav/​ObjectNavFragment.java Reads vehicle mode when entering controller modes.
robot/​android/​app/​src/​main/​java/​org/​openbot/​app/​robot/​logging/​LoggerFragment.java Reads vehicle mode when entering controller modes.
robot/​android/​app/​src/​main/​java/​org/​openbot/​app/​robot/​common/​ControlsFragment.java Removes stale mode storage and reports vehicle mode.
robot/​android/​app/​src/​main/​java/​org/​openbot/​app/​robot/​autopilot/​AutopilotFragment.java Reads vehicle mode when entering controller modes.
.github/​workflows/​releases.yml Restricts controller APK builds to ARM targets.
.github/​workflows/​firmware.yml Excludes firmware Markdown files from build triggers.
.git-blame-ignore-revs Marks the Java formatting commit for blame exclusion.

Review effort: Balanced

@thias15
thias15 merged commit 5e3fecb into master Oct 23, 2026
13 checks passed
@thias15
thias15 deleted the thias15/code-fixes branch October 23, 2026 06:16
@vkuehn

vkuehn commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

@thias15 following for quite some time but didn't notice it supports linux. Is the linux app something new or did it slip through for me.

BTW Thanks a lot for it !

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.

3 participants