33 #ifdef __PX4_POSIX_BBBLUE 37 #include <px4_platform_common/log.h> 39 #include <robotcontrol.h> 40 #include <board_config.h> 48 if (_num_outputs > MAX_NUM_PWM) {
49 PX4_WARN(
"number of outputs too large. Setting to %i", MAX_NUM_PWM);
50 _num_outputs = MAX_NUM_PWM;
54 BBBlueRcPWMOut::~BBBlueRcPWMOut()
75 for (
int ch = 0; ch < num_outputs; ++ch) {
76 ret += rc_servo_send_pulse_us(ch + 1, pwm[ch]);
82 #endif // __PX4_POSIX_BBBLUE BBBlueRcPWMOut(int max_num_outputs)
int send_output_pwm(const uint16_t *pwm, int num_outputs) override