diff --git a/src/main.cpp b/src/main.cpp index 150b60140..5df8f68c4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,6 +8,7 @@ #include "ADC_SPI.h" #include "MessageHandler.h" #include "DrivetrainSystem.h" +#include "PedalsSystem.h" #include "HytechCANInterface.h" @@ -31,7 +32,10 @@ CANInterfaces can_interfaces = {&fl_inv, &fr_inv, &rl_inv, & using DrivetrainSystemType = DrivetrainSystem; auto drivetrain = DrivetrainSystemType({&fl_inv, &fr_inv, &rl_inv, &rr_inv}, 5000); -MCUStateMachine state_machine(&buzzer, &drivetrain, &dash_interface); +PedalsParams params_for_test = {1, 1, 10, 10, 1, 1, 9, 9}; +PedalsSystem pedals(params_for_test, params_for_test); + +MCUStateMachine state_machine(&buzzer, &drivetrain, &dash_interface, &pedals); FlexCAN_T4 FRONT_INV_CAN;