-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored code. Added metatable, modified table.go to keep track of …
…error imdex, more readme information, no more searching with string, no more "reading from the table (?), and other cleanup.
- Loading branch information
Showing
7 changed files
with
156 additions
and
156 deletions.
There are no files selected for viewing
Submodule vehicle_control_system
deleted from
4fddb9
1 change: 0 additions & 1 deletion
1
firmware/projects/debug/FrontControllerSimple/vehicle_control_system
Submodule vehicle_control_system
deleted from
a04e3a
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,16 +1,55 @@ | ||
# To test the virtual can and go script | ||
# CAN Error TUI | ||
|
||
This is a Tangible User Interface program designed to track CAN Errors including their count, recency, description, and name. | ||
|
||
Users can: | ||
|
||
- Acknowledge the error ( Hide the error until it is sent again) | ||
- Ignore the error ( Hides, resets, and stops reading all future occurrences of the error) | ||
- View ignored errors and choose to unignore those errors | ||
|
||
## Setup | ||
|
||
Install required dependencies: | ||
|
||
```bash | ||
sudo apt-get update | ||
sudo apt-get upgrade | ||
sudo apt install net-tools iproute2 can-utils linux-modules-extra-$(uname -r) | ||
``` | ||
|
||
Kill all existing instances of ip-links: | ||
|
||
`ip link show` | ||
`sudo ip link delete <ip-link>` | ||
```bash | ||
ip link show | ||
sudo ip link delete <ip-link> | ||
``` | ||
|
||
Setup the can network: | ||
|
||
`./setup_vcan.sh <CAN_PORT>` | ||
```bash | ||
./setup_vcan.sh <CAN_PORT> | ||
``` | ||
|
||
Start the CLI viewer: | ||
`go run error_tui.go -i <CAN_PORT>` | ||
## Usage | ||
|
||
Start the CLI viewer for single use: | ||
|
||
```bash | ||
go run error_tui.go -i <CAN_PORT> -w <WARN_TIMER> | ||
``` | ||
|
||
OR | ||
|
||
Build the go file: | ||
|
||
```bash | ||
go build -o <BUILD_NAME> | ||
./<BUILD_NAME> -i <CAN_PORT> -w <WARN_TIMER> | ||
``` | ||
|
||
You can now run: | ||
`cansend <CAN_PORT> <MSG_ID>#<MSG_DATA>` | ||
|
||
```bash | ||
cansend <CAN_PORT> <MSG> | ||
``` |
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
Oops, something went wrong.