Files
bobbycar-boardcomputer-firm…/main/modes/ignoreinputmode.cpp
T

21 lines
415 B
C++
Raw Normal View History

2021-11-01 20:44:57 +01:00
#include "ignoreinputmode.h"
// local includes
#include "globals.h"
#include "utils.h"
void IgnoreInputMode::update()
{
for (bobbycar::protocol::serial::MotorState &motor : motors())
{
motor.ctrlTyp = m_ctrlTyp;
motor.ctrlMod = m_ctrlMod;
motor.pwm = m_pwm;
motor.cruiseCtrlEna = false;
motor.nCruiseMotTgt = 0;
}
fixCommonParams();
sendCommands();
}