Suggested updates based on my experience building the robot. #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These are some suggested updates and work-arounds that I hope would be helpful to others in building the "Raspberry Pi Mecanum Robot" project as described in Issue 135 of the MagPi magazine, and further explained at https://www.penguintutor.com/projects/robot-mecanum .
-The mecanum.py code was changed to use 'p' or 'P' to exit the program. It had used 'q', which conflicts with some uses of the WSAD buttons on the keyboard (often mapping 'q' to some action). This is mentioned in the video on the above website.
-The README file was updated and revised:
This was to fix some formatting errors which mucked up the example Linux code, and to explain the other changes described here.
Also, it was to suggest using the "Legacy" (Bullseye) version of the Raspberry Pi OS. When implementing the AntiMicroX software on my Raspberry Pi Zero, I found it would not work with the mecanum.py code. It appears the conflict occurs with the Bookworm version of the RaspPi OS, preventing the mecanum.py process from accessing the joystick device in use by AntiMicroX in another process. My work-around is to install the "Legacy" Bullseye version of the OS. Ideally someone will update AntiMicroX, or the RasPi OS, to fix this issue. (I don't know if using Administrator mode may also fix this issue.)
-The Shell program was updated to run from the mecanum folder. In this way the AntiMicroX and mecanum.py programs all run from the same folder that has the configuration file. This also just seems like a cleaner installation.