-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial Digital Input support * Add support for Digital Output (LED) --------- Co-authored-by: Zhiquan Yeo <[email protected]>
- Loading branch information
1 parent
cf1167e
commit df20e3c
Showing
6 changed files
with
122 additions
and
20 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 |
---|---|---|
@@ -1 +1,36 @@ | ||
# xrp-wpilib-lite | ||
# WPILib HAL Simulation - XRP Edition (Lite) | ||
## Introduction | ||
This repository contains a reference implementation of a XRP robot that can be controlled via the WPILib HALSim WebSocket extension. | ||
|
||
The firmware implements (a subset) of the [WPILib Robot Hardware Interface WebSockets API spec](https://github.com/wpilibsuite/allwpilib/blob/main/simulation/halsim_ws_core/doc/hardware_ws_api.md). It behaves similarly to the [WPILib Romi Project](https://github.com/wpilibsuite/wpilib-ws-robot-romi) (with some functionality removed due to being an embedded system vs a Linux machine). | ||
|
||
## Built-in IO Mapping | ||
|
||
### Digital I/O Map | ||
| DIO Port # | Function | | ||
|------------|-------------------| | ||
| 0 | XRP User Button | | ||
| 1 | XRP Onboard LED | | ||
| 2 | RESERVED | | ||
| 3 | RESERVED | | ||
| 4 | Left Encoder A | | ||
| 5 | Left Encoder B | | ||
| 6 | Right Encoder A | | ||
| 7 | Right Encoder B | | ||
| 8 | Motor 3 Encoder A | | ||
| 9 | Motor 3 Encoder B | | ||
| 10 | Motor 4 Encoder A | | ||
| 11 | Motor 4 Encoder B | | ||
|
||
### Motor and Servo Map | ||
|
||
Instead of pure PWM channels, the XRP uses SimDevices, specifically the `XRPMotor` and `XRPServo` devices. | ||
|
||
| Device # | Device Type | Function | | ||
|-----------|-------------|-------------| | ||
| 0 | XRPMotor | Left Motor | | ||
| 1 | XRPMotor | Right Motor | | ||
| 2 | XRPMotor | Motor 3 | | ||
| 3 | XRPMotor | Motor 4 | | ||
| 4 | XRPServo | Servo 1 | | ||
| 5 | XRPServo | Servo 2 | |
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
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
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
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
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