92 #define RC_SERVO_CH_MIN 1 93 #define RC_SERVO_CH_MAX 8
94 #define RC_SERVO_CH_ALL 0
98 #define RC_ESC_DEFAULT_MIN_US 1000 99 #define RC_ESC_DEFAULT_MAX_US 2000 100 #define RC_ESC_DJI_MIN_US 1120 101 #define RC_ESC_DJI_MAX_US 1920 int rc_servo_init(void)
Configures the PRU to send servo pulses.
int rc_servo_send_pulse_us(int ch, int us)
Sends a single pulse of desired width in microseconds to one or all channels.
int rc_servo_send_oneshot_pulse_normalized(int ch, double input)
Like rc_send_pulse_normalized but translates a desired esc throttle position from 0 to 1...
int rc_servo_send_esc_pulse_normalized(int ch, double input)
Like rc_send_pulse_normalized but translates a desired esc throttle position from 0 to 1...
int rc_servo_set_esc_range(int min, int max)
Sets the pulse width range used by the rc_servo_esc_send_pulse_normalized() function.
int rc_servo_power_rail_en(int en)
enables or disables the 6V power rail to drive servos.
int rc_servo_send_pulse_normalized(int ch, double input)
Like rc_send_pulse_us but translates a desired servo position from -1.5 to 1.5 to a corresponding pul...
void rc_servo_cleanup(void)
Cleans up servo functionality and turns off the power rail.
#define min(a, b)
Definition: rc_usefulincludes.h:73