ETB progress

This commit is contained in:
rusefi 2019-04-23 23:18:48 -04:00
parent 710602472e
commit f100a701a1
3 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,9 @@
* set etb_p X
* set etb_i X
* set etb_d X
* set etb_o X
*
* set_etb X
*
* http://rusefi.com/forum/viewtopic.php?f=5&t=592
*
@ -253,7 +255,7 @@ static EtbController etbController;
* set_etb X
* manual duty cycle control without PID. Percent value from 0 to 100
*/
static void setThrottleDutyCycle(float level) {
void setThrottleDutyCycle(float level) {
scheduleMsg(&logger, "setting ETB duty=%f%%", level);
if (cisnan(level)) {
valueOverride = NAN;

View File

@ -16,6 +16,7 @@ void setEtbPFactor(float value);
void setEtbIFactor(float value);
void setEtbDFactor(float value);
void setEtbOffset(int value);
void setThrottleDutyCycle(float level);
bool isETBRestartNeeded(void);
void stopETBPins(void);
void startETBPins(void);

View File

@ -1188,6 +1188,7 @@ const command_f_s commandsF[] = {
{"etb_p", setEtbPFactor},
{"etb_i", setEtbIFactor},
{"etb_d", setEtbDFactor},
{"etb", setThrottleDutyCycle},
#endif /* EFI_ELECTRONIC_THROTTLE_BODY */
// {"", },