Ajout fonctionnalité de maintien d'état au démarrage

This commit is contained in:
=
2021-01-27 14:35:40 +01:00
parent 562a43a6dd
commit 56e5041c5f
2 changed files with 3 additions and 21 deletions

View File

@@ -92,20 +92,6 @@ ZenDrive_::ZenDrive_()
// Setup HID report structure
static HIDSubDescriptor node(_hidReportDescriptor, sizeof(_hidReportDescriptor));
HID().AppendDescriptor(&node);
// Initalize state for each module
// Gearshift module
speeds = B00000001; // (NEUTRAL;SPEED1;SPEED2;SPEED3;SPEED4;SPEED5;SPEED6;SPEEDR)
handbrake = 255;
//Pedals module
clutch = 0;
brake = 0;
accelerator = 0;
//Steering wheel module
wheelCommands = 0; // (BLINKER LEFT;BLINKER RIGHT;WARNING;LIGHTS;HEADLIGHTS;FOGLIGHTS;STARTER;HORN;CRUISE;CRUISE +;CRUISE -;NOT USED;NOT USED;NOT USED;NOT USED;NOT USED)
steering = 0;
}
void ZenDrive_::begin()