rusefi/firmware/config/engines/slingshot.cpp

41 lines
1.4 KiB
C++

/*
https://rusefi.com/docs/pinouts/hellen/hellen-112-17/
*/
#include "pch.h"
#include "defaults.h"
#include "proteus_meta.h"
// set engine_type 33
// ME17_9_MISC
void setSlingshot() {
strcpy(engineConfiguration->engineMake, "Polaris");
engineConfiguration->cylindersCount = 4;
engineConfiguration->firingOrder = FO_1_4_3_2; // yes WOW that's not the most popular firing order!!!
engineConfiguration->injectionMode = IM_SEQUENTIAL;
engineConfiguration->trigger.type = trigger_type_e::TT_TOOTHED_WHEEL_36_1;
engineConfiguration->vvtMode[0] = VVT_BOSCH_QUICK_START;
engineConfiguration->ignitionMode = IM_WASTED_SPARK; // just for now
engineConfiguration->twoWireBatchIgnition = true;
engineConfiguration->globalTriggerAngleOffset = 110;
// GM TMAP is recommended
setCustomMap(/*lowValue*/ 20, 0.3, 250, 4.65);
#if HW_PROTEUS
engineConfiguration->triggerInputPins[0] = PROTEUS_VR_1;
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_2;
engineConfiguration->brakePedalPin = PROTEUS_DIGITAL_1;
engineConfiguration->auxAnalogInputs[0] = PROTEUS_IN_ANALOG_VOLT_4; // gear position signal
engineConfiguration->starterControlPin = Gpio::PROTEUS_LS_15;
engineConfiguration->startStopButtonPin = PROTEUS_DIGITAL_5;
engineConfiguration->startRequestPinInverted = true;
setProteusEtbIO();
engineConfiguration->invertCamVVTSignal = true;
#endif // HW_PROTEUS
}