Skip to content

Commit

Permalink
add boost to ams2
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyDeaks committed Jun 29, 2023
1 parent f8957cb commit aa1286b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions stm/ams2/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class AMS2Logger(BaseLogger):
'fuelpres', 'fuellevel', 'fuelcapacity',
'abs', 'asm', 'tcs',
'drsavail', 'drs', 'ers',
'boost', 'boostavail',
'splittime'
]

Expand Down Expand Up @@ -156,6 +157,8 @@ def process_packet(self, timestamp, p, lastp):
1 if p.drsAvailable else 0,
1 if p.drsActive else 0,
1 if p.mErsAutoModeEnabled else 0,
1 if p.mBoostActive else 0,
p.mBoostAmount,
p.mSplitTime
])

Expand Down
12 changes: 12 additions & 0 deletions stm/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,18 @@
"name": "DRS Available",
"shortname": "DRSAvail"
},
"boost": {
"datatype": 0,
"datasize": 2,
"name": "Boost Active",
"shortname": "BoostActive"
},
"boostavail": {
"decplaces": 2,
"name": "Boost Available",
"shortname": "BoostAvail",
"units": "%"
},
"debug1": {
"decplaces": 2,
"name": "Debug 1",
Expand Down
2 changes: 1 addition & 1 deletion stm/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.5.2"
__version__ = "1.5.3"

0 comments on commit aa1286b

Please sign in to comment.