|
|
@ -61,14 +61,15 @@ public: |
|
|
|
/** @see ModuleBase::print_status() */ |
|
|
|
/** @see ModuleBase::print_status() */ |
|
|
|
int print_status() override; |
|
|
|
int print_status() override; |
|
|
|
|
|
|
|
|
|
|
|
void Run() override; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int ioctl(device::file_t *filp, int cmd, unsigned long arg) override; |
|
|
|
int ioctl(device::file_t *filp, int cmd, unsigned long arg) override; |
|
|
|
|
|
|
|
|
|
|
|
bool updateOutputs(bool stop_motors, uint16_t outputs[MAX_ACTUATORS], |
|
|
|
bool updateOutputs(bool stop_motors, uint16_t outputs[MAX_ACTUATORS], |
|
|
|
unsigned num_outputs, unsigned num_control_groups_updated) override; |
|
|
|
unsigned num_outputs, unsigned num_control_groups_updated) override; |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Run() override; |
|
|
|
|
|
|
|
|
|
|
|
static constexpr uint16_t PWM_SIM_DISARMED_MAGIC = 900; |
|
|
|
static constexpr uint16_t PWM_SIM_DISARMED_MAGIC = 900; |
|
|
|
static constexpr uint16_t PWM_SIM_FAILSAFE_MAGIC = 600; |
|
|
|
static constexpr uint16_t PWM_SIM_FAILSAFE_MAGIC = 600; |
|
|
|
static constexpr uint16_t PWM_SIM_PWM_MIN_MAGIC = 1000; |
|
|
|
static constexpr uint16_t PWM_SIM_PWM_MIN_MAGIC = 1000; |
|
|
|