Merge pull request #181 from ConnorRigby/typo-fixes
Fix a few typos and comment formatting consistency
This commit is contained in:
commit
ab701d6d84
|
@ -298,7 +298,7 @@ int ignition4EndAngle = 0;
|
|||
int ignition5EndAngle = 0;
|
||||
|
||||
//These are variables used across multiple files
|
||||
bool initialisationComplete = false; //Tracks whether the setup() functino has run completely
|
||||
bool initialisationComplete = false; //Tracks whether the setup() function has run completely
|
||||
volatile uint16_t mainLoopCount;
|
||||
unsigned long revolutionTime; //The time in uS that one revolution would take at current speed (The time tooth 1 was last seen, minus the time it was seen prior to that)
|
||||
volatile unsigned long timer5_overflow_count = 0; //Increments every time counter 5 overflows. Used for the fast version of micros()
|
||||
|
@ -628,7 +628,7 @@ struct config6 {
|
|||
byte egoTPSMax; //TPS must be below this for closed loop to function
|
||||
byte vvtPin : 6;
|
||||
byte useExtBaro : 1;
|
||||
byte boostMode : 1; //Simple of full boost contrl
|
||||
byte boostMode : 1; //Simple of full boost control
|
||||
byte boostPin : 6;
|
||||
byte VVTasOnOff : 1; //Whether or not to use the VVT table as an on/off map
|
||||
byte useEMAP : 1;
|
||||
|
@ -678,7 +678,7 @@ struct config6 {
|
|||
byte iacAlgorithm : 3; //Valid values are: "None", "On/Off", "PWM", "PWM Closed Loop", "Stepper", "Stepper Closed Loop"
|
||||
byte iacStepTime : 3; //How long to pulse the stepper for to ensure the step completes (ms)
|
||||
byte iacChannels : 1; //How many outputs to use in PWM mode (0 = 1 channel, 1 = 2 channels)
|
||||
byte iacPWMdir : 1; //Directino of the PWM valve. 0 = Normal = Higher RPM with more duty. 1 = Reverse = Lower RPM with more duty
|
||||
byte iacPWMdir : 1; //Direction of the PWM valve. 0 = Normal = Higher RPM with more duty. 1 = Reverse = Lower RPM with more duty
|
||||
|
||||
byte iacFastTemp; //Fast idle temp when using a simple on/off valve
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ void initialiseIdle()
|
|||
//Enable channel compare interrupt (This is currently disabled as not in use)
|
||||
//FTM2_C1SC |= FTM_CSC_CHIE;
|
||||
|
||||
// enable IRQ Interrupt
|
||||
//Enable IRQ Interrupt
|
||||
NVIC_ENABLE_IRQ(IRQ_FTM2);
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,8 @@ void initialiseIdle()
|
|||
//Initialising comprises of setting the 2D tables with the relevant values from the config pages
|
||||
switch(configPage6.iacAlgorithm)
|
||||
{
|
||||
case IAC_ALGORITHM_NONE: //Case 0 is no idle control ('None')
|
||||
case IAC_ALGORITHM_NONE:
|
||||
//Case 0 is no idle control ('None')
|
||||
break;
|
||||
|
||||
case IAC_ALGORITHM_ONOFF:
|
||||
|
|
|
@ -136,7 +136,7 @@ void setup()
|
|||
initialiseTimers();
|
||||
|
||||
loadConfig();
|
||||
doUpdates(); //Check if any data items need updating (Occurs ith firmware updates)
|
||||
doUpdates(); //Check if any data items need updating (Occurs with firmware updates)
|
||||
|
||||
//Always start with a clean slate on the bootloader capabilities level
|
||||
//This should be 0 until we hear otherwise from the 16u2
|
||||
|
@ -1212,7 +1212,7 @@ void loop()
|
|||
else if(configPage10.stagingMode == STAGING_MODE_AUTO)
|
||||
{
|
||||
currentStatus.PW1 = tempPW1;
|
||||
//If automatic mode, the primary injectors are used all the way up to their limit (COnfigured by the pulsewidth limit setting)
|
||||
//If automatic mode, the primary injectors are used all the way up to their limit (Configured by the pulsewidth limit setting)
|
||||
//If they exceed their limit, the extra duty is passed to the secondaries
|
||||
if(tempPW1 > pwLimit)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue