Skip to content

Commit

Permalink
fmu: remove unused _num_failsafe_set
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng authored and dagar committed Aug 31, 2019
1 parent 1d57780 commit 0ec6e79
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/drivers/px4fmu/fmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ class PX4FMU : public cdev::CDev, public ModuleBase<PX4FMU>, 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)
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 0ec6e79

Please sign in to comment.