Add Arduino upload, Test cmd and log location (#6)
* add log, arduino upload and Test * use correct path * add haptic nodes * readme: add haptic and arduino motor connection
This commit is contained in:
parent
6b122c45f3
commit
da7902b460
17
README.md
17
README.md
|
|
@ -80,7 +80,21 @@ ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url htt
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Uploading sketch to Arduino Uno
|
||||||
|
```
|
||||||
|
cd ../src/arduino/{simwind/shiftlights/simhaptic} # Depending on the controller you have.
|
||||||
|
make # Make sure serial connection is the same as on the host pc and it have the right group permission to access the device without root
|
||||||
|
```
|
||||||
|
|
||||||
|
### SimHaptic Ardunio Motor Connection
|
||||||
|
- Acc Pedal Motor to be connected to M1
|
||||||
|
- Brake Pedal Motor to be connected to M3
|
||||||
|
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
```
|
||||||
|
./monocoque test -vv # Make sure that ~/.config/monocque/monocoque.config only contains the devices you have connected.
|
||||||
|
```
|
||||||
|
|
||||||
### Static Analysis
|
### Static Analysis
|
||||||
```
|
```
|
||||||
|
|
@ -95,6 +109,9 @@ make
|
||||||
valgrind -v --leak-check=full --show-leak-kinds=all --suppressions=../.valgrindrc ./monocoque play
|
valgrind -v --leak-check=full --show-leak-kinds=all --suppressions=../.valgrindrc ./monocoque play
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Logs file location
|
||||||
|
`~/.cache/monocoque/*.log`
|
||||||
|
|
||||||
## ToDo
|
## ToDo
|
||||||
- windows port
|
- windows port
|
||||||
- more memory testing
|
- more memory testing
|
||||||
|
|
|
||||||
|
|
@ -42,4 +42,23 @@ devices = ( { device = "USB";
|
||||||
{ device = "Serial";
|
{ device = "Serial";
|
||||||
type = "ShiftLights";
|
type = "ShiftLights";
|
||||||
config = "None";
|
config = "None";
|
||||||
devpath = "/dev/ttyACM0"; } );
|
devpath = "/dev/ttyACM0"; },
|
||||||
|
{ device = "Serial";
|
||||||
|
type = "Haptic";
|
||||||
|
effect = "TyreSlip";
|
||||||
|
tyre = "ALL"; // motor m1 connected to throttle
|
||||||
|
motors = 0;
|
||||||
|
devpath = "/dev/ttyACM0"; },
|
||||||
|
{ device = "Serial";
|
||||||
|
type = "Haptic";
|
||||||
|
effect = "TyreLock";
|
||||||
|
tyre = "ALL"; // motor m3 connected to brake;
|
||||||
|
motors = 2;
|
||||||
|
devpath = "/dev/ttyACM0"; },
|
||||||
|
{ device = "Serial";
|
||||||
|
type = "Haptic"
|
||||||
|
effect = "ABS";
|
||||||
|
tyre = "ALL"; // this will have to be documented, this tells the code to spin both motors
|
||||||
|
motors = 8;
|
||||||
|
devpath = "/dev/ttyACM0";}
|
||||||
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue