DCSModulesAPI
1.0.0
DCS sub project containing all the control modules as libraries.
|
Exposes tilt and rotation stages control parameters. More...
Enumerations | |
enum | UnitTarget { UnitTarget::ESP301, UnitTarget::PMC8742 } |
Enumerates the diferent devices acessible via COM/USB ports. More... | |
Functions | |
DCS_API void | StartServices (const char *esp301_com="COM3", const char *pmc8742_usb="104D-4000") |
Starts the COM and USB port services. More... | |
DCS_API void | StopServices () |
Stops the COM and USB port services. More... | |
DCS_API void | IssueGenericCommand (UnitTarget target, DCS::Utils::BasicString full_command) |
Issue a generic command to the specified target. More... | |
DCS_API DCS::Utils::BasicString | IssueGenericCommandResponse (UnitTarget target, DCS::Utils::BasicString full_command) |
Issue a generic command to the specified target, waiting for a response. More... | |
Exposes tilt and rotation stages control parameters.
|
strong |
void DCS::Control::StartServices | ( | const char * | esp301_com = "COM3" , |
const char * | pmc8742_usb = "104D-4000" |
||
) |
Starts the COM and USB port services.
This creates a thread responsible for sending commands for all the targets.
esp301_com | The com port (or virtual com port) connecting the pc and the ESP301. Default = "COM3". |
pmc8742_usb | The usb vid/pid of the PMC8742 controller. Default = "104D-4000". |
void DCS::Control::StopServices | ( | ) |
Stops the COM and USB port services.
This destroys all the context of COM and USB handles and disables remote connection.