mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:17:35 +08:00
pwm_out_sim: cleanup, avoid unnecessary & incorrect init of _control_subs
These need to be set to -1.
This commit is contained in:
@@ -31,8 +31,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef DRIVERS_PWM_OUT_SIM_PWMSIM_HPP_
|
||||
#define DRIVERS_PWM_OUT_SIM_PWMSIM_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -104,7 +103,7 @@ private:
|
||||
int _update_rate{400};
|
||||
int _current_update_rate{0};
|
||||
|
||||
int _control_subs[actuator_controls_s::NUM_ACTUATOR_CONTROL_GROUPS] {};
|
||||
int _control_subs[actuator_controls_s::NUM_ACTUATOR_CONTROL_GROUPS];
|
||||
|
||||
px4_pollfd_struct_t _poll_fds[actuator_controls_s::NUM_ACTUATOR_CONTROL_GROUPS] {};
|
||||
unsigned _poll_fds_num{0};
|
||||
@@ -142,4 +141,3 @@ private:
|
||||
void update_params();
|
||||
};
|
||||
|
||||
#endif /* DRIVERS_PWM_OUT_SIM_PWMSIM_HPP_ */
|
||||
|
||||
Reference in New Issue
Block a user