parent
7b44f618e7
commit
e76f567608
|
@ -14,7 +14,7 @@
|
||||||
class Logging;
|
class Logging;
|
||||||
void processCanRxMessage(const CANRxFrame& msg, Logging* logger);
|
void processCanRxMessage(const CANRxFrame& msg, Logging* logger);
|
||||||
|
|
||||||
class CanWrite final : public PeriodicController<256> {
|
class CanWrite final : public PeriodicController<512> {
|
||||||
public:
|
public:
|
||||||
CanWrite();
|
CanWrite();
|
||||||
void PeriodicTask(efitime_t nowNt) override;
|
void PeriodicTask(efitime_t nowNt) override;
|
||||||
|
|
|
@ -217,6 +217,12 @@ percent_t getPedalPosition(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
if (mockPedalPosition != MOCK_UNDEFINED) {
|
if (mockPedalPosition != MOCK_UNDEFINED) {
|
||||||
return mockPedalPosition;
|
return mockPedalPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't choke without a pedal set
|
||||||
|
if (CONFIG(throttlePedalPositionAdcChannel) == EFI_ADC_NONE) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
DISPLAY_TAG(PEDAL_SECTION);
|
DISPLAY_TAG(PEDAL_SECTION);
|
||||||
DISPLAY_TEXT(Analog_MCU_reads);
|
DISPLAY_TEXT(Analog_MCU_reads);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue