107#define MIN_CYCLES_FOR_ENDCOMPARE 6
115 schedule.endScheduleSetByDecoder =
true;
integerPID_ideal boostPID & currentStatus
Definition auxiliaries.cpp:77
uint32_t angleToTimeMicroSecPerDegree(uint16_t angle)
Definition crankMaths.cpp:35
static int16_t ignitionLimits(int16_t angle)
Makes one pass at nudging the angle to within [0,CRANK_ANGLE_MAX_IGN].
Definition crankMaths.h:13
int CRANK_ANGLE_MAX_IGN
Definition globals.cpp:133
int CRANK_ANGLE_MAX_INJ
The number of crank degrees that the system track over. Typically 720 divided by the number of squirt...
Definition globals.cpp:134
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:349
page_iterator_t advance(const page_iterator_t &it)
Definition pages.cpp:450
static uint32_t calculateInjectorTimeout(const FuelSchedule &schedule, int channelInjDegrees, int openAngle, int crankAngle)
Definition schedule_calcs.hpp:52
static uint16_t _adjustToIgnChannel(int angle, int channelInjDegrees)
Definition schedule_calcs.hpp:93
static void calculateIgnitionAngle(const uint16_t dwellAngle, const uint16_t channelIgnDegrees, int8_t advance, int *pEndAngle, int *pStartAngle)
Definition schedule_calcs.hpp:60
void adjustCrankAngle(IgnitionSchedule &schedule, int endAngle, int crankAngle)
Definition schedule_calcs.hpp:109
static void calculateIgnitionTrailingRotary(uint16_t dwellAngle, int rotarySplitDegrees, int leadIgnitionAngle, int *pEndAngle, int *pStartAngle)
Definition schedule_calcs.hpp:68
static uint32_t calculateIgnitionTimeout(const IgnitionSchedule &schedule, int startAngle, int channelIgnDegrees, int crankAngle)
Definition schedule_calcs.hpp:99
#define MIN_CYCLES_FOR_ENDCOMPARE
Definition schedule_calcs.hpp:107
static uint16_t calculateInjectorStartAngle(uint16_t pwDegrees, int16_t injChannelDegrees, uint16_t injAngle)
Definition schedule_calcs.hpp:9
static uint32_t _calculateInjectorTimeout(const FuelSchedule &schedule, uint16_t openAngle, uint16_t crankAngle)
Definition schedule_calcs.hpp:28
static uint32_t _calculateIgnitionTimeout(const IgnitionSchedule &schedule, int16_t startAngle, int16_t crankAngle)
Definition schedule_calcs.hpp:76
static int _adjustToInjChannel(int angle, int channelInjDegrees)
Definition schedule_calcs.hpp:46
@ RUNNING
Definition scheduler.h:110
Definition scheduler.h:167
Definition scheduler.h:114
#define SET_COMPARE(compare, value)
Definition timers.h:24