rusefi/firmware/config/engines/slingshot.cpp

41 lines
1.4 KiB
C++
Raw Normal View History

2023-07-11 14:19:46 -07:00
/*
https://rusefi.com/docs/pinouts/hellen/hellen-112-17/
*/
2023-07-11 12:08:58 -07:00
#include "pch.h"
2023-07-12 08:34:25 -07:00
#include "defaults.h"
#include "proteus_meta.h"
2023-07-11 12:08:58 -07:00
// set engine_type 33
2023-07-19 15:49:10 -07:00
// ME17_9_MISC
2023-07-11 12:08:58 -07:00
void setSlingshot() {
2023-07-19 07:54:21 -07:00
strcpy(engineConfiguration->engineMake, "Polaris");
2023-07-19 18:51:38 -07:00
engineConfiguration->cylindersCount = 4;
engineConfiguration->firingOrder = FO_1_4_3_2; // yes WOW that's not the most popular firing order!!!
2023-07-19 09:27:52 -07:00
engineConfiguration->injectionMode = IM_SEQUENTIAL;
2023-07-19 18:51:38 -07:00
engineConfiguration->trigger.type = trigger_type_e::TT_TOOTHED_WHEEL_36_1;
engineConfiguration->vvtMode[0] = VVT_BOSCH_QUICK_START;
2023-07-19 09:27:52 -07:00
engineConfiguration->ignitionMode = IM_WASTED_SPARK; // just for now
engineConfiguration->twoWireBatchIgnition = true;
2023-07-19 15:29:27 -07:00
engineConfiguration->globalTriggerAngleOffset = 110;
2023-07-19 09:27:52 -07:00
// GM TMAP is recommended
2023-11-07 22:15:33 -08:00
setCustomMap(/*lowValue*/ 20, 0.3, 250, 4.65);
#if HW_PROTEUS
2024-05-12 10:55:23 -07:00
engineConfiguration->triggerInputPins[0] = PROTEUS_VR_1;
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_2;
engineConfiguration->brakePedalPin = PROTEUS_DIGITAL_1;
2024-05-08 18:45:21 -07:00
engineConfiguration->auxAnalogInputs[0] = PROTEUS_IN_ANALOG_VOLT_4; // gear position signal
2024-04-11 20:25:36 -07:00
engineConfiguration->starterControlPin = Gpio::PROTEUS_LS_15;
2024-04-15 09:11:43 -07:00
engineConfiguration->startStopButtonPin = PROTEUS_DIGITAL_5;
engineConfiguration->startRequestPinInverted = true;
2024-04-11 20:25:36 -07:00
setProteusEtbIO();
2023-07-19 18:51:38 -07:00
engineConfiguration->invertCamVVTSignal = true;
#endif // HW_PROTEUS
2023-07-11 12:08:58 -07:00
}