35 for (
int attempt = 0; attempt <
MAX_RETRIES; attempt++)
53 std::this_thread::sleep_for(std::chrono::milliseconds(100));
58 RCLCPP_INFO(
getLogger(),
"CbArmPX4: vehicle ARMED - posting success");
std::atomic< bool > armed_
CpVehicleStatus * vehicleStatus_
static constexpr int MAX_RETRIES
CpVehicleCommand * vehicleCommand_
static constexpr int RETRY_INTERVAL_SEC
smacc2::SmaccSignal< void()> onArmed_
virtual rclcpp::Logger getLogger() const
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
ISmaccStateMachine * getStateMachine()
smacc2::SmaccSignalConnection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)