Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2020-04-10 14:49:13 -07:00 committed by GitHub
parent f0a4dffacb
commit 84e73e37dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ EXTERN_ENGINE;
#include "rpm_calculator.h"
#include "efi_gpio.h"
#include "pwm_generator_logic.h"
#include "sensor.h"
/**
* in case of zero frequency pin is operating as simple on/off. '1' for ON and '0' for OFF
@ -148,6 +149,8 @@ float getEngineValue(le_action_e action DECLARE_ENGINE_PARAMETER_SUFFIX) {
return engine->isInShutdownMode();
case LE_METHOD_VBATT:
return getVBatt(PASS_ENGINE_PARAMETER_SIGNATURE);
case LE_METHOD_TPS:
return Sensor::get(SensorType::DriverThrottleIntent).value_or(0);
#include "fsio_getters.def"
default:
warning(CUSTOM_FSIO_UNEXPECTED, "FSIO ERROR no data for action=%d", action);