Skip to main content

pamoja_esc_pulse

Function pamoja_esc_pulse 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_esc_pulse( esc: PamojaEsc, throttle: f32, ) -> u16
Expand description

Returns the pulse width for a throttle.

§Arguments

  • esc - the controller.
  • throttle - the demand from -1, full reverse, to 1, full forward, held to that range.

§Returns

The pulse width in microseconds, or the neutral one for a throttle that is not a number.