mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 10:23:33 +08:00
advertise esc_status where is publishes
- esc_status is an optional logging topic resulting in it not being logged if it doesn't get advertise -> Add advertise where applicable
This commit is contained in:
@@ -53,6 +53,8 @@ bool GZMixingInterfaceESC::init(const std::string &model_name)
|
||||
return false;
|
||||
}
|
||||
|
||||
_esc_status_pub.advertise();
|
||||
|
||||
ScheduleNow();
|
||||
|
||||
return true;
|
||||
|
||||
@@ -96,6 +96,8 @@ SimulatorMavlink::SimulatorMavlink() :
|
||||
snprintf(param_name, sizeof(param_name), "%s_%s%d", "PWM_MAIN", "FUNC", i + 1);
|
||||
param_get(param_find(param_name), &_output_functions[i]);
|
||||
}
|
||||
|
||||
_esc_status_pub.advertise();
|
||||
}
|
||||
|
||||
void SimulatorMavlink::parameters_update(bool force)
|
||||
|
||||
Reference in New Issue
Block a user