Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DC motor driver hat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
DC motor driver hat
Commits
8c5c9938
Commit
8c5c9938
authored
1 year ago
by
Samuel Tardieu
Browse files
Options
Downloads
Patches
Plain Diff
Motor shutdown and music commands
parent
5a24c439
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.org
+11
-0
11 additions, 0 deletions
README.org
with
11 additions
and
0 deletions
README.org
+
11
−
0
View file @
8c5c9938
...
...
@@ -73,11 +73,16 @@ Values are exchanged in little endian format.
- In automatic motor distance, time in 100th of seconds to reach the maximum speed
or to decrease the speed from the maximum to 0.
** 0x28 Motor shutdown timeout (R/W)
- Number of tenths of seconds in before the motor shut down
** 0x30-0x31 Motor speed (R/W)
- Left and right motor speed, between -127 and 127 each, max speed is
±127. -128 means standby. ±127 corresponds to the value limited by the
max motor percentage.
- If written while in automatic mode, the robot switches to manual mode
** 0x32-0x35 Encoder ticks (R)
...
...
@@ -93,3 +98,9 @@ Values are exchanged in little endian format.
- Reading this value gives the distance to the target in ticks.
- If left and right distances are not equal, they will be kept
proportional as much as possible in order to progress the same way.
** 0x40 Music (W)
- For each motor, left then right, frequency in Hz on 1 byte and
duration in 10th of seconds on 1 byte. This cannot be used if the
motor is moving.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment