Mick config & fixes (#260)

This commit is contained in:
CommanderRedYT
2022-02-12 19:07:34 +01:00
committed by GitHub
parent 0d366881b2
commit cb11ca3c9e
11 changed files with 99 additions and 58 deletions

View File

@@ -331,10 +331,14 @@ void sendCanCommands()
using namespace bobbycar::protocol::can;
#ifdef HAS_SIMPLIFIED
SIMPLIFIED_PWM
#else
if (front) send(MotorController<false, false>::Command::InpTgt, front->command.left.pwm);
if (front) send(MotorController<false, true>::Command::InpTgt, front->command.right.pwm);
if (back) send(MotorController<true, false>::Command::InpTgt, back->command.left.pwm);
if (back) send(MotorController<true, true>::Command::InpTgt, back->command.right.pwm);
#endif
uint16_t buttonLeds{};
if (const auto index = settingsPersister.currentlyOpenProfileIndex())