forked from Archive/PX4-Autopilot
Initialise some extra fields, don't try closing an ORB advertisement.
This commit is contained in:
parent
86a29f7064
commit
5c692e2971
|
@ -121,6 +121,8 @@ FMUServo::FMUServo(Mode mode) :
|
||||||
_task(-1),
|
_task(-1),
|
||||||
_t_actuators(-1),
|
_t_actuators(-1),
|
||||||
_t_armed(-1),
|
_t_armed(-1),
|
||||||
|
_t_outputs(0),
|
||||||
|
_num_outputs(0),
|
||||||
_task_should_exit(false),
|
_task_should_exit(false),
|
||||||
_armed(false),
|
_armed(false),
|
||||||
_mixers(nullptr)
|
_mixers(nullptr)
|
||||||
|
@ -280,7 +282,6 @@ FMUServo::task_main()
|
||||||
|
|
||||||
::close(_t_actuators);
|
::close(_t_actuators);
|
||||||
::close(_t_armed);
|
::close(_t_armed);
|
||||||
::close(_t_outputs);
|
|
||||||
|
|
||||||
/* make sure servos are off */
|
/* make sure servos are off */
|
||||||
up_pwm_servo_deinit();
|
up_pwm_servo_deinit();
|
||||||
|
|
Loading…
Reference in New Issue