mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
fmu: remove unused _num_failsafe_set
This commit is contained in:
@@ -218,7 +218,6 @@ private:
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user