additional ETB state into LiveData

only:uaefi
This commit is contained in:
rusefillc 2024-11-08 20:21:59 -05:00
parent d169f57c5c
commit 5651062d4f
2 changed files with 4 additions and 1 deletions

View File

@ -224,7 +224,9 @@ void EtbController::showStatus() {
}
expected<percent_t> EtbController::observePlant() {
return Sensor::get(m_positionSensor);
expected<percent_t> plant = Sensor::get(m_positionSensor);
validPosition = plant.Valid;
return plant;
}
void EtbController::setIdlePosition(percent_t pos) {

View File

@ -17,6 +17,7 @@ struct_no_prefix electronic_throttle_s
bit etbRevLimitActive
bit jamDetected
bit validPosition
uint16_t etbTpsErrorCounter;"ETB TPS error counter";"count", 1,0, 0,3, 0,@@GAUGE_CATEGORY_ETB@@
uint16_t etbPpsErrorCounter;"ETB pedal error counter";"count", 1,0, 0,3, 0,@@GAUGE_CATEGORY_ETB@@