forked from Archive/PX4-Autopilot
FMU driver: stricter init
This commit is contained in:
parent
164b4ef4ce
commit
85ccecea9c
|
@ -179,6 +179,9 @@ private:
|
|||
uint32_t gpio_read(void);
|
||||
int gpio_ioctl(file *filp, int cmd, unsigned long arg);
|
||||
|
||||
/* do not allow to copy due to ptr data members */
|
||||
PX4FMU(const PX4FMU&);
|
||||
PX4FMU operator=(const PX4FMU&);
|
||||
};
|
||||
|
||||
const PX4FMU::GPIOConfig PX4FMU::_gpio_tab[] = {
|
||||
|
@ -242,6 +245,7 @@ PX4FMU::PX4FMU() :
|
|||
_task(-1),
|
||||
_armed_sub(-1),
|
||||
_outputs_pub(-1),
|
||||
_armed{},
|
||||
_num_outputs(0),
|
||||
_primary_pwm_device(false),
|
||||
_task_should_exit(false),
|
||||
|
@ -252,6 +256,7 @@ PX4FMU::PX4FMU() :
|
|||
_groups_subscribed(0),
|
||||
_control_subs{-1},
|
||||
_poll_fds_num(0),
|
||||
_pwm_limit{},
|
||||
_failsafe_pwm{0},
|
||||
_disarmed_pwm{0},
|
||||
_num_failsafe_set(0),
|
||||
|
|
|
@ -6,3 +6,5 @@ MODULE_COMMAND = fmu
|
|||
SRCS = fmu.cpp
|
||||
|
||||
MODULE_STACKSIZE = 1200
|
||||
|
||||
EXTRACXXFLAGS = -Weffc++
|
||||
|
|
Loading…
Reference in New Issue