Speeduino
Loading...
Searching...
No Matches
Functions | Variables
tsCommandController.h File Reference
#include "../../../statuses.h"
#include "../../../config_pages.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool handleTsCommand (uint16_t command, statuses &current, config2 &page2)
 Process a command from TunerStudio.
 
void pulsedCommandController (const statuses &current, const config13 &page13)
 Start/stop pulsing injectors & coils based on configuration set by handleTsCommand.
 

Variables

static constexpr uint16_t TS_CMD_TEST_DSBL = 256
 
static constexpr uint16_t TS_CMD_TEST_ENBL = 257
 
static constexpr uint16_t TS_CMD_INJ1_ON = 513
 
static constexpr uint16_t TS_CMD_INJ1_OFF = 514
 
static constexpr uint16_t TS_CMD_INJ1_PULSED = 515
 
static constexpr uint16_t TS_CMD_INJ2_ON = 516
 
static constexpr uint16_t TS_CMD_INJ2_OFF = 517
 
static constexpr uint16_t TS_CMD_INJ2_PULSED = 518
 
static constexpr uint16_t TS_CMD_INJ3_ON = 519
 
static constexpr uint16_t TS_CMD_INJ3_OFF = 520
 
static constexpr uint16_t TS_CMD_INJ3_PULSED = 521
 
static constexpr uint16_t TS_CMD_INJ4_ON = 522
 
static constexpr uint16_t TS_CMD_INJ4_OFF = 523
 
static constexpr uint16_t TS_CMD_INJ4_PULSED = 524
 
static constexpr uint16_t TS_CMD_INJ5_ON = 525
 
static constexpr uint16_t TS_CMD_INJ5_OFF = 526
 
static constexpr uint16_t TS_CMD_INJ5_PULSED = 527
 
static constexpr uint16_t TS_CMD_INJ6_ON = 528
 
static constexpr uint16_t TS_CMD_INJ6_OFF = 529
 
static constexpr uint16_t TS_CMD_INJ6_PULSED = 530
 
static constexpr uint16_t TS_CMD_INJ7_ON = 531
 
static constexpr uint16_t TS_CMD_INJ7_OFF = 532
 
static constexpr uint16_t TS_CMD_INJ7_PULSED = 533
 
static constexpr uint16_t TS_CMD_INJ8_ON = 534
 
static constexpr uint16_t TS_CMD_INJ8_OFF = 535
 
static constexpr uint16_t TS_CMD_INJ8_PULSED = 536
 
static constexpr uint16_t TS_CMD_IGN1_ON = 769
 
static constexpr uint16_t TS_CMD_IGN1_OFF = 770
 
static constexpr uint16_t TS_CMD_IGN1_PULSED = 771
 
static constexpr uint16_t TS_CMD_IGN2_ON = 772
 
static constexpr uint16_t TS_CMD_IGN2_OFF = 773
 
static constexpr uint16_t TS_CMD_IGN2_PULSED = 774
 
static constexpr uint16_t TS_CMD_IGN3_ON = 775
 
static constexpr uint16_t TS_CMD_IGN3_OFF = 776
 
static constexpr uint16_t TS_CMD_IGN3_PULSED = 777
 
static constexpr uint16_t TS_CMD_IGN4_ON = 778
 
static constexpr uint16_t TS_CMD_IGN4_OFF = 779
 
static constexpr uint16_t TS_CMD_IGN4_PULSED = 780
 
static constexpr uint16_t TS_CMD_IGN5_ON = 781
 
static constexpr uint16_t TS_CMD_IGN5_OFF = 782
 
static constexpr uint16_t TS_CMD_IGN5_PULSED = 783
 
static constexpr uint16_t TS_CMD_IGN6_ON = 784
 
static constexpr uint16_t TS_CMD_IGN6_OFF = 785
 
static constexpr uint16_t TS_CMD_IGN6_PULSED = 786
 
static constexpr uint16_t TS_CMD_IGN7_ON = 787
 
static constexpr uint16_t TS_CMD_IGN7_OFF = 788
 
static constexpr uint16_t TS_CMD_IGN7_PULSED = 789
 
static constexpr uint16_t TS_CMD_IGN8_ON = 790
 
static constexpr uint16_t TS_CMD_IGN8_OFF = 791
 
static constexpr uint16_t TS_CMD_IGN8_PULSED = 792
 
static constexpr uint16_t TS_CMD_STM32_REBOOT = 12800
 
static constexpr uint16_t TS_CMD_STM32_BOOTLOADER = 12801
 
static constexpr uint16_t TS_CMD_SD_FORMAT = 13057
 
static constexpr uint16_t TS_CMD_VSS_60KMH = 39168U
 
static constexpr uint16_t TS_CMD_VSS_RATIO1 = 39169U
 
static constexpr uint16_t TS_CMD_VSS_RATIO2 = 39170U
 
static constexpr uint16_t TS_CMD_VSS_RATIO3 = 39171U
 
static constexpr uint16_t TS_CMD_VSS_RATIO4 = 39172U
 
static constexpr uint16_t TS_CMD_VSS_RATIO5 = 39173U
 
static constexpr uint16_t TS_CMD_VSS_RATIO6 = 39174U
 

Detailed Description

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

Function Documentation

◆ handleTsCommand()

bool handleTsCommand ( uint16_t  command,
statuses current,
config2 page2 
)

Process a command from TunerStudio.

Parameters
commandOne of the above commands.
Returns
true if the command was processed, false otherwise
Parameters
commandThe command number of the button that was clicked. See TS_CommendButtonHandler.h for a list of button IDs
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pulsedCommandController()

void pulsedCommandController ( const statuses current,
const config13 page13 
)

Start/stop pulsing injectors & coils based on configuration set by handleTsCommand.

Must be called at least once a millisecond from the main loop

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ TS_CMD_IGN1_OFF

constexpr uint16_t TS_CMD_IGN1_OFF = 770
staticconstexpr

◆ TS_CMD_IGN1_ON

constexpr uint16_t TS_CMD_IGN1_ON = 769
staticconstexpr

◆ TS_CMD_IGN1_PULSED

constexpr uint16_t TS_CMD_IGN1_PULSED = 771
staticconstexpr

◆ TS_CMD_IGN2_OFF

constexpr uint16_t TS_CMD_IGN2_OFF = 773
staticconstexpr

◆ TS_CMD_IGN2_ON

constexpr uint16_t TS_CMD_IGN2_ON = 772
staticconstexpr

◆ TS_CMD_IGN2_PULSED

constexpr uint16_t TS_CMD_IGN2_PULSED = 774
staticconstexpr

◆ TS_CMD_IGN3_OFF

constexpr uint16_t TS_CMD_IGN3_OFF = 776
staticconstexpr

◆ TS_CMD_IGN3_ON

constexpr uint16_t TS_CMD_IGN3_ON = 775
staticconstexpr

◆ TS_CMD_IGN3_PULSED

constexpr uint16_t TS_CMD_IGN3_PULSED = 777
staticconstexpr

◆ TS_CMD_IGN4_OFF

constexpr uint16_t TS_CMD_IGN4_OFF = 779
staticconstexpr

◆ TS_CMD_IGN4_ON

constexpr uint16_t TS_CMD_IGN4_ON = 778
staticconstexpr

◆ TS_CMD_IGN4_PULSED

constexpr uint16_t TS_CMD_IGN4_PULSED = 780
staticconstexpr

◆ TS_CMD_IGN5_OFF

constexpr uint16_t TS_CMD_IGN5_OFF = 782
staticconstexpr

◆ TS_CMD_IGN5_ON

constexpr uint16_t TS_CMD_IGN5_ON = 781
staticconstexpr

◆ TS_CMD_IGN5_PULSED

constexpr uint16_t TS_CMD_IGN5_PULSED = 783
staticconstexpr

◆ TS_CMD_IGN6_OFF

constexpr uint16_t TS_CMD_IGN6_OFF = 785
staticconstexpr

◆ TS_CMD_IGN6_ON

constexpr uint16_t TS_CMD_IGN6_ON = 784
staticconstexpr

◆ TS_CMD_IGN6_PULSED

constexpr uint16_t TS_CMD_IGN6_PULSED = 786
staticconstexpr

◆ TS_CMD_IGN7_OFF

constexpr uint16_t TS_CMD_IGN7_OFF = 788
staticconstexpr

◆ TS_CMD_IGN7_ON

constexpr uint16_t TS_CMD_IGN7_ON = 787
staticconstexpr

◆ TS_CMD_IGN7_PULSED

constexpr uint16_t TS_CMD_IGN7_PULSED = 789
staticconstexpr

◆ TS_CMD_IGN8_OFF

constexpr uint16_t TS_CMD_IGN8_OFF = 791
staticconstexpr

◆ TS_CMD_IGN8_ON

constexpr uint16_t TS_CMD_IGN8_ON = 790
staticconstexpr

◆ TS_CMD_IGN8_PULSED

constexpr uint16_t TS_CMD_IGN8_PULSED = 792
staticconstexpr

◆ TS_CMD_INJ1_OFF

constexpr uint16_t TS_CMD_INJ1_OFF = 514
staticconstexpr

◆ TS_CMD_INJ1_ON

constexpr uint16_t TS_CMD_INJ1_ON = 513
staticconstexpr

◆ TS_CMD_INJ1_PULSED

constexpr uint16_t TS_CMD_INJ1_PULSED = 515
staticconstexpr

◆ TS_CMD_INJ2_OFF

constexpr uint16_t TS_CMD_INJ2_OFF = 517
staticconstexpr

◆ TS_CMD_INJ2_ON

constexpr uint16_t TS_CMD_INJ2_ON = 516
staticconstexpr

◆ TS_CMD_INJ2_PULSED

constexpr uint16_t TS_CMD_INJ2_PULSED = 518
staticconstexpr

◆ TS_CMD_INJ3_OFF

constexpr uint16_t TS_CMD_INJ3_OFF = 520
staticconstexpr

◆ TS_CMD_INJ3_ON

constexpr uint16_t TS_CMD_INJ3_ON = 519
staticconstexpr

◆ TS_CMD_INJ3_PULSED

constexpr uint16_t TS_CMD_INJ3_PULSED = 521
staticconstexpr

◆ TS_CMD_INJ4_OFF

constexpr uint16_t TS_CMD_INJ4_OFF = 523
staticconstexpr

◆ TS_CMD_INJ4_ON

constexpr uint16_t TS_CMD_INJ4_ON = 522
staticconstexpr

◆ TS_CMD_INJ4_PULSED

constexpr uint16_t TS_CMD_INJ4_PULSED = 524
staticconstexpr

◆ TS_CMD_INJ5_OFF

constexpr uint16_t TS_CMD_INJ5_OFF = 526
staticconstexpr

◆ TS_CMD_INJ5_ON

constexpr uint16_t TS_CMD_INJ5_ON = 525
staticconstexpr

◆ TS_CMD_INJ5_PULSED

constexpr uint16_t TS_CMD_INJ5_PULSED = 527
staticconstexpr

◆ TS_CMD_INJ6_OFF

constexpr uint16_t TS_CMD_INJ6_OFF = 529
staticconstexpr

◆ TS_CMD_INJ6_ON

constexpr uint16_t TS_CMD_INJ6_ON = 528
staticconstexpr

◆ TS_CMD_INJ6_PULSED

constexpr uint16_t TS_CMD_INJ6_PULSED = 530
staticconstexpr

◆ TS_CMD_INJ7_OFF

constexpr uint16_t TS_CMD_INJ7_OFF = 532
staticconstexpr

◆ TS_CMD_INJ7_ON

constexpr uint16_t TS_CMD_INJ7_ON = 531
staticconstexpr

◆ TS_CMD_INJ7_PULSED

constexpr uint16_t TS_CMD_INJ7_PULSED = 533
staticconstexpr

◆ TS_CMD_INJ8_OFF

constexpr uint16_t TS_CMD_INJ8_OFF = 535
staticconstexpr

◆ TS_CMD_INJ8_ON

constexpr uint16_t TS_CMD_INJ8_ON = 534
staticconstexpr

◆ TS_CMD_INJ8_PULSED

constexpr uint16_t TS_CMD_INJ8_PULSED = 536
staticconstexpr

◆ TS_CMD_SD_FORMAT

constexpr uint16_t TS_CMD_SD_FORMAT = 13057
staticconstexpr

◆ TS_CMD_STM32_BOOTLOADER

constexpr uint16_t TS_CMD_STM32_BOOTLOADER = 12801
staticconstexpr

◆ TS_CMD_STM32_REBOOT

constexpr uint16_t TS_CMD_STM32_REBOOT = 12800
staticconstexpr

◆ TS_CMD_TEST_DSBL

constexpr uint16_t TS_CMD_TEST_DSBL = 256
staticconstexpr

◆ TS_CMD_TEST_ENBL

constexpr uint16_t TS_CMD_TEST_ENBL = 257
staticconstexpr

◆ TS_CMD_VSS_60KMH

constexpr uint16_t TS_CMD_VSS_60KMH = 39168U
staticconstexpr

◆ TS_CMD_VSS_RATIO1

constexpr uint16_t TS_CMD_VSS_RATIO1 = 39169U
staticconstexpr

◆ TS_CMD_VSS_RATIO2

constexpr uint16_t TS_CMD_VSS_RATIO2 = 39170U
staticconstexpr

◆ TS_CMD_VSS_RATIO3

constexpr uint16_t TS_CMD_VSS_RATIO3 = 39171U
staticconstexpr

◆ TS_CMD_VSS_RATIO4

constexpr uint16_t TS_CMD_VSS_RATIO4 = 39172U
staticconstexpr

◆ TS_CMD_VSS_RATIO5

constexpr uint16_t TS_CMD_VSS_RATIO5 = 39173U
staticconstexpr

◆ TS_CMD_VSS_RATIO6

constexpr uint16_t TS_CMD_VSS_RATIO6 = 39174U
staticconstexpr