Start a service from a guidance mode

Hi,

I’d like to know how to send a message to start or stop a service from a guidance mode. I’ve manage to find how to send a message from a guidance mode to the flight supervisor but I can’t find how to do it for a service. I can’t find how to get the service channel to attach the message sender. Would it be possible to get a sample ?

Thanks,
Eliott

The following lines of code enabled me to send a message from a guidance mode to a service :

mGuidance = this->getGuidance(); 
msg = mGuidance->getMessageHub();
msg_channel_service = msg->startClientChannel(pomp::Address("unix:/tmp/cv-service"));
msg->attachMessageSender(&msg_cmd_sender_service, msg_channel_service);

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.