mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mixer_module: extend printf status output
This commit is contained in:
parent
b080679146
commit
a545f7ee16
@ -79,10 +79,18 @@ MixingOutput::~MixingOutput()
|
||||
px4_sem_destroy(&_lock);
|
||||
}
|
||||
|
||||
void MixingOutput::printStatus()
|
||||
void MixingOutput::printStatus() const
|
||||
{
|
||||
perf_print_counter(_control_latency_perf);
|
||||
PX4_INFO("Switched to rate_ctrl work queue: %i", (int)_wq_switched);
|
||||
PX4_INFO("Mixer loaded: %s", _mixers ? "yes" : "no");
|
||||
|
||||
PX4_INFO("Channel Configuration:");
|
||||
|
||||
for (unsigned i = 0; i < MAX_ACTUATORS; i++) {
|
||||
PX4_INFO("Channel %i: failsafe: %d, disarmed: %d, min: %d, max: %d", i, _failsafe_value[i], _disarmed_value[i],
|
||||
_min_value[i], _max_value[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void MixingOutput::updateParams()
|
||||
|
||||
@ -100,7 +100,7 @@ public:
|
||||
|
||||
~MixingOutput();
|
||||
|
||||
void printStatus();
|
||||
void printStatus() const;
|
||||
|
||||
/**
|
||||
* Call this regularly from Run(). It will call interface.updateOutputs().
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user