mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
feat(parachute): advertise topic at boot and add it to the logged topics
Signed-off-by: mahima-yoga <mahima@auterion.com>
This commit is contained in:
@@ -104,6 +104,7 @@ void LoggedTopics::add_default_topics()
|
||||
add_topic("navigator_status");
|
||||
add_topic("offboard_control_mode", 100);
|
||||
add_topic("onboard_computer_status", 10);
|
||||
add_optional_topic("parachute");
|
||||
add_topic("parameter_update");
|
||||
add_topic("position_controller_status", 500);
|
||||
add_topic("position_controller_landing_status", 100);
|
||||
|
||||
@@ -48,6 +48,9 @@ bool Parachute::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
// advertise on startup so that the topic exists when the logger checks for it
|
||||
_parachute_pub.advertise();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user