diff --git a/firmware/projects/LVController/inc/app.h b/firmware/projects/LVController/inc/app.h index 8851b46cd..501e2835e 100644 --- a/firmware/projects/LVController/inc/app.h +++ b/firmware/projects/LVController/inc/app.h @@ -3,6 +3,8 @@ #include +#include "bindings.h" +#include "can_messages.h" #include "shared/comms/can/can_bus.h" #include "shared/os/mutex.h" #include "shared/periph/gpio.h" @@ -41,10 +43,14 @@ class Subsystem { : enable_output_(enable_output) {} inline virtual void Enable() const { + bindings::DelayMS(1000); + + return; // disable gpio enable_output_.SetHigh(); } inline virtual void Disable() const { + return; // disable gpio enable_output_.SetLow(); } @@ -57,14 +63,17 @@ class Indicator { Indicator(shared::periph::DigitalOutput& output) : output_(output) {} inline void TurnOn() { + return; // dsiable gpio output_.SetHigh(); } inline void TurnOff() { + return; // dsiable gpio output_.SetLow(); } inline void SetState(bool value) { + return; // dsiable gpio output_.Set(value); } @@ -137,6 +146,7 @@ class Fan : public Subsystem { float duty_per_second_ = 0.0f; void SetPower(float power) const { + return; // disable gpio pwm_output_.SetDutyCycle(power_to_duty_.Evaluate(power)); } }; @@ -151,6 +161,7 @@ class DCDC : public Subsystem { led_(led_output){}; bool CheckValid() { + return false; // disable gpio bool is_valid = valid_input_.Read(); led_.SetState(is_valid); return is_valid;