This commit is contained in:
parent
31a34a3ac2
commit
157732d5aa
|
@ -598,7 +598,10 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
||||||
|
|
||||||
#if EFI_SHAFT_POSITION_INPUT
|
#if EFI_SHAFT_POSITION_INPUT
|
||||||
// 248
|
// 248
|
||||||
tsOutputChannels->vvtPosition = engine->triggerCentral.getVVTPosition(0, 0);
|
tsOutputChannels->vvtPosition = engine->triggerCentral.getVVTPosition(/*bankIndex*/0, /*camIndex*/0);
|
||||||
|
tsOutputChannels->secondVvtPositionBank1 = engine->triggerCentral.getVVTPosition(/*bankIndex*/0, /*camIndex*/1);
|
||||||
|
tsOutputChannels->vvtPositionBank2 = engine->triggerCentral.getVVTPosition(/*bankIndex*/1, /*camIndex*/0);
|
||||||
|
tsOutputChannels->secondVvtPositionBank2 = engine->triggerCentral.getVVTPosition(/*bankIndex*/1, /*camIndex*/1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 252
|
// 252
|
||||||
|
|
|
@ -79,6 +79,9 @@ int TriggerCentral::getHwEventCounter(int index) const {
|
||||||
EXTERN_ENGINE;
|
EXTERN_ENGINE;
|
||||||
|
|
||||||
angle_t TriggerCentral::getVVTPosition(uint8_t bankIndex, uint8_t camIndex) {
|
angle_t TriggerCentral::getVVTPosition(uint8_t bankIndex, uint8_t camIndex) {
|
||||||
|
if (bankIndex >= BANKS_COUNT || camIndex >= CAMS_PER_BANK) {
|
||||||
|
return NAN;
|
||||||
|
}
|
||||||
return vvtPosition[bankIndex][camIndex];
|
return vvtPosition[bankIndex][camIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue