mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Typo Fix: ChangeWorkQeue
Fix the typo of 'WorkItem::ChangeWorkQeue' to 'WorkItem::ChangeWorkQueue'
This commit is contained in:
parent
4746a19c0c
commit
746c16400a
@ -79,7 +79,7 @@ public:
|
||||
* @param config The WorkQueue configuration (see WorkQueueManager.hpp).
|
||||
* @return true if initialization was successful
|
||||
*/
|
||||
bool ChangeWorkQeue(const wq_config_t &config) { return Init(config); }
|
||||
bool ChangeWorkQueue(const wq_config_t &config) { return Init(config); }
|
||||
|
||||
const char *ItemName() const { return _item_name; }
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@ int PCA9685Wrapper::init()
|
||||
|
||||
_class_instance = register_class_devname(PWM_OUTPUT_BASE_DEVICE_PATH);
|
||||
|
||||
this->ChangeWorkQeue(px4::device_bus_to_wq(pca9685->get_device_id()));
|
||||
this->ChangeWorkQueue(px4::device_bus_to_wq(pca9685->get_device_id()));
|
||||
|
||||
PX4_INFO("running on I2C bus %d address 0x%.2x", pca9685->get_device_bus(), pca9685->get_device_address());
|
||||
|
||||
|
||||
@ -269,7 +269,7 @@ bool MixingOutput::updateSubscriptionsStaticMixer(bool allow_wq_switch, bool lim
|
||||
const bool sub_group_1 = (_groups_required & (1 << 1));
|
||||
|
||||
if (allow_wq_switch && !_wq_switched && (sub_group_0 || sub_group_1)) {
|
||||
if (_interface.ChangeWorkQeue(px4::wq_configurations::rate_ctrl)) {
|
||||
if (_interface.ChangeWorkQueue(px4::wq_configurations::rate_ctrl)) {
|
||||
// let the new WQ handle the subscribe update
|
||||
_wq_switched = true;
|
||||
_interface.ScheduleNow();
|
||||
@ -374,7 +374,7 @@ bool MixingOutput::updateSubscriptionsDynamicMixer(bool allow_wq_switch, bool li
|
||||
}
|
||||
|
||||
if (allow_wq_switch && !_wq_switched && switch_requested) {
|
||||
if (_interface.ChangeWorkQeue(px4::wq_configurations::rate_ctrl)) {
|
||||
if (_interface.ChangeWorkQueue(px4::wq_configurations::rate_ctrl)) {
|
||||
// let the new WQ handle the subscribe update
|
||||
_wq_switched = true;
|
||||
_interface.ScheduleNow();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user