mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 07:03:34 +08:00
Fixed signal loss detection on S.Bus parsing, stripped PX4IO code parts from S.Bus parser to allow FMU / IO parser code sharing. Added S.Bus channels 17 and 18 if channel data struct has enough space. Tested with receiver and PX4FMU.
This commit is contained in:
+7
-1
@@ -52,6 +52,7 @@
|
||||
#include <nuttx/clock.h>
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_pwm_output.h>
|
||||
#include <systemlib/hx_stream.h>
|
||||
#include <systemlib/perf_counter.h>
|
||||
|
||||
@@ -201,7 +202,12 @@ comms_handle_command(const void *buffer, size_t length)
|
||||
system_state.servo_rate = new_servo_rate;
|
||||
}
|
||||
|
||||
/* update servo values immediately */
|
||||
/*
|
||||
* update servo values immediately.
|
||||
* the updates are done in addition also
|
||||
* in the mainloop, since this function will only
|
||||
* update with a connected FMU.
|
||||
*/
|
||||
mixer_tick();
|
||||
|
||||
/* XXX do relay changes here */
|
||||
|
||||
Reference in New Issue
Block a user