-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also add some comments.
- Loading branch information
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package robot | ||
|
||
// ChassisSpeedLevelType represents the speed level of the chassis. | ||
type ChassisSpeedLevelType int8 | ||
|
||
const ( | ||
// ChassisSpeedLevelFast is the fast speed level. | ||
ChassisSpeedLevelFast ChassisSpeedLevelType = iota | ||
// ChassisSpeedLevelMedium is the medium speed level. | ||
ChassisSpeedLevelMedium | ||
// ChassisSpeedLevelSlow is the slow speed level. | ||
ChassisSpeedLevelSlow | ||
// ChassisSpeedLevelCustom is the custom speed level. This enables | ||
// individually setting speeds for each direction/axis. This is not | ||
// supported yet. | ||
// | ||
// TODO(bga): Add support for this. | ||
ChassisSpeedLevelCustom | ||
ChassisSpeedLevelTypeCount | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters