Skip to content

Commit

Permalink
updated main
Browse files Browse the repository at this point in the history
  • Loading branch information
RCMast3r committed Jan 30, 2024
1 parent ac31941 commit fd0cb51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "ADC_SPI.h"
#include "MessageHandler.h"
#include "DrivetrainSystem.h"
#include "PedalsSystem.h"

#include "HytechCANInterface.h"

Expand All @@ -31,7 +32,10 @@ CANInterfaces<CircularBufferType> can_interfaces = {&fl_inv, &fr_inv, &rl_inv, &
using DrivetrainSystemType = DrivetrainSystem<InverterInterfaceType>;
auto drivetrain = DrivetrainSystemType({&fl_inv, &fr_inv, &rl_inv, &rr_inv}, 5000);

MCUStateMachine<DrivetrainSystemType> 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<DrivetrainSystemType> state_machine(&buzzer, &drivetrain, &dash_interface, &pedals);

FlexCAN_T4<CAN2, RX_SIZE_256, TX_SIZE_16> FRONT_INV_CAN;

Expand Down

0 comments on commit fd0cb51

Please sign in to comment.