Expand serial status field names
This commit is contained in:
@@ -34,8 +34,8 @@ Opening a USB serial connection can reset an Arduino Nano through DTR.
|
||||
If the board boots while `IG1 HIGH` and parking is OFF, the controller assumes the seat is already at the saved driving position:
|
||||
|
||||
```text
|
||||
currentMs = savedPositionMs
|
||||
targetMs = savedPositionMs
|
||||
currentPositionMs = savedPositionMs
|
||||
targetPositionMs = savedPositionMs
|
||||
relay = OFF
|
||||
```
|
||||
|
||||
@@ -85,23 +85,23 @@ Every status output uses one item per line and includes boot uptime:
|
||||
```text
|
||||
[STATUS]
|
||||
uptime=0h 2m 13s 457ms
|
||||
raw=1023
|
||||
ig=true
|
||||
p=true
|
||||
rawDrive=false
|
||||
confirmedDrive=false
|
||||
parkingRawValue=1023
|
||||
ignition=true
|
||||
parking=true
|
||||
rawDriveMode=false
|
||||
confirmedDriveMode=false
|
||||
```
|
||||
|
||||
If the use counter reached 10, status/debug output also includes the ignition-off calibration timer:
|
||||
|
||||
```text
|
||||
autoCalOffTimer=elapsed 0h 1m 20s 123ms remaining 0h 3m 39s 877ms
|
||||
autoCalibrationOffTimer=elapsed 0h 1m 20s 123ms remaining 0h 3m 39s 877ms
|
||||
```
|
||||
|
||||
If IG1 is still ON:
|
||||
|
||||
```text
|
||||
autoCalOffTimer=waiting_for_ig_off
|
||||
autoCalibrationOffTimer=waiting_for_ig_off
|
||||
```
|
||||
|
||||
Debug mode prints a readable block every second, one item per line. Boolean values are printed as `true` or `false`:
|
||||
@@ -109,22 +109,23 @@ Debug mode prints a readable block every second, one item per line. Boolean valu
|
||||
```text
|
||||
[DEBUG]
|
||||
uptime=0h 0m 5s 123ms
|
||||
raw=1023
|
||||
ig=true
|
||||
p=true
|
||||
rawDrive=false
|
||||
confirmedDrive=false
|
||||
currentMs=0
|
||||
targetMs=0
|
||||
savedMs=6000
|
||||
requestedRelay=0
|
||||
actualRelay=0
|
||||
manual=false
|
||||
parkingRawValue=1023
|
||||
ignition=true
|
||||
parking=true
|
||||
rawDriveMode=false
|
||||
confirmedDriveMode=false
|
||||
currentPositionMs=0
|
||||
targetPositionMs=0
|
||||
savedPositionMs=6000
|
||||
hardLimitPositionMs=6000
|
||||
requestedRelayAction=0
|
||||
actualRelayAction=0
|
||||
manualMode=false
|
||||
stabilizing=false
|
||||
useCount=0/10
|
||||
autoPending=false
|
||||
forceCal=false
|
||||
autoCalState=0
|
||||
autoCalibrationPending=false
|
||||
forceCalibration=false
|
||||
autoCalibrationState=0
|
||||
```
|
||||
|
||||
## Automatic Calibration
|
||||
@@ -136,8 +137,8 @@ autoCalState=0
|
||||
```text
|
||||
up 7000ms
|
||||
down 6000ms
|
||||
currentMs = 0
|
||||
targetMs = 0
|
||||
currentPositionMs = 0
|
||||
targetPositionMs = 0
|
||||
useCount = 0
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user