reducing magic constants & pedal calibration
This commit is contained in:
parent
1f664d8b5b
commit
d567f2f852
|
@ -670,6 +670,8 @@ typedef enum __attribute__ ((__packed__)) {
|
||||||
|
|
||||||
|
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
enum class TsCalMode : uint8_t {
|
enum class TsCalMode : uint8_t {
|
||||||
None = 0,
|
None = 0,
|
||||||
Tps1Max = 1,
|
Tps1Max = 1,
|
||||||
|
@ -683,5 +685,7 @@ enum class TsCalMode : uint8_t {
|
||||||
Tps2Min = 9,
|
Tps2Min = 9,
|
||||||
Tps2SecondaryMax = 10,
|
Tps2SecondaryMax = 10,
|
||||||
Tps2SecondaryMin = 11,
|
Tps2SecondaryMin = 11,
|
||||||
|
PedalMin = 12,
|
||||||
|
PedalMax = 13,
|
||||||
};
|
};
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
|
@ -1205,8 +1205,6 @@ void initSettings(void) {
|
||||||
addConsoleAction("tpsinfo", printTPSInfo);
|
addConsoleAction("tpsinfo", printTPSInfo);
|
||||||
addConsoleAction("calibrate_tps_1_closed", grabTPSIsClosed);
|
addConsoleAction("calibrate_tps_1_closed", grabTPSIsClosed);
|
||||||
addConsoleAction("calibrate_tps_1_wot", grabTPSIsWideOpen);
|
addConsoleAction("calibrate_tps_1_wot", grabTPSIsWideOpen);
|
||||||
addConsoleAction(CMD_CALIBRATE_PEDAL_UP, grabPedalIsUp);
|
|
||||||
addConsoleAction(CMD_CALIBRATE_PEDAL_DOWN, grabPedalIsWideOpen);
|
|
||||||
addConsoleAction("info", printAllInfo);
|
addConsoleAction("info", printAllInfo);
|
||||||
|
|
||||||
addConsoleAction("set_one_coil_ignition", setOneCoilIgnition);
|
addConsoleAction("set_one_coil_ignition", setOneCoilIgnition);
|
||||||
|
|
Loading…
Reference in New Issue