![]() |
Speeduino
|
#include "tsCommandController.h"#include "../../../sensors.h"#include "../../../storage.h"#include "../../../SD_logger.h"#include "../../../pages.h"#include "../../../scheduledIO_ign.h"#include "../../../scheduledIO_inj.h"#include "../../../scheduler_fuel_controller.h"#include "../../../scheduler_ignition_controller.h"Variables | |
| TESTABLE_STATIC uint8_t | testInjectorPulseCount = 0 |
| TESTABLE_STATIC uint8_t | testIgnitionPulseCount = 0 |
| TESTABLE_STATIC byte | HWTest_INJ_Pulsed |
| TESTABLE_STATIC byte | HWTest_IGN_Pulsed |
Header file for the TunerStudio command handler The command handler manages all the inputs FROM TS which are issued when a command button is clicked by the user


| TESTABLE_STATIC uint16_t calcPulsesPerKm | ( | const statuses & | current, |
| const config2 & | page2, | ||
| uint32_t(*)(byte) | pGetGap | ||
| ) |










Given 3 command indexes, calculate the channel number.
| cmd | Command index to convert to channel. E.g. TS_CMD_IGN5_ON |
| baseCmd2 | First command index. E.g. TS_CMD_IGN2_ON |
| baseCmd1 | First command index. E.g. TS_CMD_IGN1_ON |





Process a command from TunerStudio.
| command | The command number of the button that was clicked. See TS_CommendButtonHandler.h for a list of button IDs |











Start/stop pulsing injectors & coils based on configuration set by handleTsCommand.
Must be called at least once a millisecond from the main loop


| TESTABLE_STATIC byte HWTest_IGN_Pulsed |
Each bit in this variable represents one of the ignition channels and it's 50% HW test status
| TESTABLE_STATIC byte HWTest_INJ_Pulsed |
Each bit in this variable represents one of the injector channels and it's 50% HW test status
| TESTABLE_STATIC uint8_t testIgnitionPulseCount = 0 |
| TESTABLE_STATIC uint8_t testInjectorPulseCount = 0 |