From 0ec6e79a0a47bc13ed74b4ea5c15ccf946e55d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 22 Aug 2019 07:14:03 +0200 Subject: [PATCH] fmu: remove unused _num_failsafe_set --- src/drivers/px4fmu/fmu.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index f4ef252de338..6c0dc8c00a60 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -218,7 +218,6 @@ class PX4FMU : public cdev::CDev, public ModuleBase, public px4::Schedul uint16_t _min_pwm[MAX_ACTUATORS] {}; uint16_t _max_pwm[MAX_ACTUATORS] {}; uint16_t _reverse_pwm_mask{0}; - unsigned _num_failsafe_set{0}; unsigned _num_disarmed_set{0}; float _mot_t_max{0.0f}; ///< maximum rise time for motor (slew rate limiting) @@ -1197,18 +1196,6 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg) } } - /* - * update the counter - * this is needed to decide if disarmed PWM output should be turned on or not - */ - _num_failsafe_set = 0; - - for (unsigned i = 0; i < MAX_ACTUATORS; i++) { - if (_failsafe_pwm[i] > 0) { - _num_failsafe_set++; - } - } - break; }