File tree Expand file tree Collapse file tree 4 files changed +2
-10
lines changed
include/vacuum-module/firmware Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ extern "C" {
88void pump_hardware_init (void );
99bool hw_start_pump_motor ();
1010bool hw_stop_pump_motor ();
11- void hw_set_pump_duty_cycle (int16_t duty );
11+ void hw_set_pump_duty_cycle (uint16_t duty );
1212uint16_t hw_get_pump_duty_cycle (void );
1313bool hw_enable_pump_tach (bool enable );
1414float hw_get_pump_rpm (void );
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ bool hw_stop_pump_motor() {
177177 return HAL_TIM_PWM_Stop (& htim17 , TIM_CHANNEL_1 ) == HAL_OK ;
178178}
179179
180- void hw_set_pump_duty_cycle (int16_t duty ) {
180+ void hw_set_pump_duty_cycle (uint16_t duty ) {
181181 duty = clamp (duty , 0 , 100 );
182182 uint16_t ccr = (uint16_t )(((float )duty / 100.0f ) * (PWM_PERIOD + 1 ));
183183 TIM17 -> CCR1 = ccr ;
Original file line number Diff line number Diff line change 11#include " firmware/pump_policy.hpp"
22
3- #include < cstdint>
4-
53#include " FreeRTOS.h"
64#include " firmware/pump_hardware.h"
7- #include " projdefs.h"
85#include " task.h"
96
107using namespace pump_policy ;
Original file line number Diff line number Diff line change 11#include " firmware/vent_policy.hpp"
22
3- #include < cstdint>
4-
5- #include " FreeRTOS.h"
63#include " firmware/vent_hardware.h"
7- #include " projdefs.h"
8- #include " task.h"
94
105using namespace vent_policy ;
116
You can’t perform that action at this time.
0 commit comments