Speeduino
Loading...
Searching...
No Matches
Functions | Variables
launchController.cpp File Reference
#include "launchController.h"
#include "units.h"
#include "src/pins/inputPin.h"
#include "unit_testing.h"
#include "bit_manip.h"

Functions

void initialiseLaunchControl (statuses &current, config6 &page6, const pinNumbers_t &pins)
 
static void updateClutchState (statuses &current, const config6 &page6)
 
static bool isLaunchArmed (const statuses &current, const config6 &page6, const config10 &page10)
 
static bool isFlatShiftActive (const statuses &current, const config6 &page6)
 
static uint16_t getHardCutRpmLimit (uint16_t baseRpm, const config2 &page2, const config15 &page15)
 
static bool withinLaunchSpeedLimit (const statuses &current, const config2 &page2, const config10 &page10)
 
static bool aboveHardLaunchRpmLimit (const statuses &current, const config2 &page2, const config6 &page6, const config15 &page15)
 
static bool aboveSoftLaunchRpmLimit (const statuses &current, const config6 &page6)
 
static bool aboveFlatShiftHardRpmLimit (const statuses &current, const config2 &page2, const config15 &page15)
 
static bool aboveFlatShiftSoftRpmLimit (const statuses &current, const config6 &page6)
 
TESTABLE_STATIC void updateLaunchFlagsCore (statuses &current, const config2 &page2, const config6 &page6, const config10 &page10, const config15 &page15)
 
void updateLaunchAndFlatShift (statuses &current, const config2 &page2, const config6 &page6, const config10 &page10, const config15 &page15)
 

Variables

TESTABLE_STATIC inputPin_t launchPin
 

Function Documentation

◆ aboveFlatShiftHardRpmLimit()

static bool aboveFlatShiftHardRpmLimit ( const statuses &  current,
const config2 &  page2,
const config15 &  page15 
)
static

◆ aboveFlatShiftSoftRpmLimit()

static bool aboveFlatShiftSoftRpmLimit ( const statuses &  current,
const config6 &  page6 
)
static

◆ aboveHardLaunchRpmLimit()

static bool aboveHardLaunchRpmLimit ( const statuses &  current,
const config2 &  page2,
const config6 &  page6,
const config15 &  page15 
)
static

◆ aboveSoftLaunchRpmLimit()

static bool aboveSoftLaunchRpmLimit ( const statuses &  current,
const config6 &  page6 
)
static

◆ getHardCutRpmLimit()

static uint16_t getHardCutRpmLimit ( uint16_t  baseRpm,
const config2 &  page2,
const config15 &  page15 
)
static

◆ initialiseLaunchControl()

void initialiseLaunchControl ( statuses &  current,
config6 &  page6,
const pinNumbers_t &  pins 
)

◆ isFlatShiftActive()

static bool isFlatShiftActive ( const statuses &  current,
const config6 &  page6 
)
static

◆ isLaunchArmed()

static bool isLaunchArmed ( const statuses &  current,
const config6 &  page6,
const config10 &  page10 
)
static

◆ updateClutchState()

static void updateClutchState ( statuses &  current,
const config6 &  page6 
)
static

◆ updateLaunchAndFlatShift()

void updateLaunchAndFlatShift ( statuses &  current,
const config2 &  page2,
const config6 &  page6,
const config10 &  page10,
const config15 &  page15 
)

◆ updateLaunchFlagsCore()

TESTABLE_STATIC void updateLaunchFlagsCore ( statuses &  current,
const config2 &  page2,
const config6 &  page6,
const config10 &  page10,
const config15 &  page15 
)

◆ withinLaunchSpeedLimit()

static bool withinLaunchSpeedLimit ( const statuses &  current,
const config2 &  page2,
const config10 &  page10 
)
static

Variable Documentation

◆ launchPin