Download data/core/components/code/mtsController.cpp from introvoyz045/sawControllers: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/datasets/introvoyz045/sawControllers/resolve/main/data/core/components/code/mtsController.cpp
- Command line
-
hf download hf://datasets/introvoyz045/sawControllers/data/core/components/code/mtsController.cpp
-
curl -L -o mtsController.cpp https://huggingface.co/datasets/introvoyz045/sawControllers/resolve/main/data/core/components/code/mtsController.cpp
652 Bytes
| mtsController::mtsController( const std::string& taskname, | |
| double period, | |
| osaCPUMask cpumask ) : | |
| mtsTaskPeriodic( taskname, period, true ), | |
| cpumask( cpumask ), | |
| ctl( NULL ), | |
| mtsEnabled( false ) { | |
| ctl = AddInterfaceProvided( "Control" ); | |
| if( ctl ){ | |
| StateTable.AddData( mtsEnabled, "Enabled" ); | |
| ctl->AddCommandWriteState( StateTable, mtsEnabled, "Enable" ); | |
| } | |
| else{ | |
| CMN_LOG_RUN_ERROR << "Failed to create interface Control for " << GetName() | |
| << std::endl; | |
| } | |
| } | |
| mtsController::~mtsController(){} | |