PoC Wise AfroESC bullshit addition

This commit is contained in:
Robert Schauklies 2025-12-28 00:29:47 +01:00
parent e4253077b1
commit 07e6e6ec4b

View file

@ -16,6 +16,7 @@ const MAX_THROTTLE:u16 = 1421;
const GAP:u16 = (MAX_THROTTLE - MIN_THROTTLE)/100;
impl AfroEsc<'_>{
//this is a little hacky tbh
pub fn new<'a>(pwm_pin:&'a mut PwmPin<'a, esp_hal::peripherals::MCPWM0<'a>, 0,true>)-> AfroEsc<'a> {
AfroEsc{pwm_pin:pwm_pin}
}