void Init_AndroidBTControl(void) { wirelessSubscribe(calibrate_us_bt, PT_CALIBRATE_SENSORS); wirelessSubscribe(calibrate_ls_bt, PT_CALIBRATE_LINESENSORS); wirelessSubscribe(motorControlTest_bt, PT_ANDROID_CONTROL); os_registerProcessStack(bt_send_sensor_data, "Send sensor data via BT", 680); printf("Android BT motor control started.\r\n"); }
void startMappingController(void) { #ifdef MAPPING_TASK if (xHandleMappingController != 0) os_resumeTask(xHandleMappingController); else xHandleMappingController = os_registerProcessStack(MappingControllerThread,"MappingController",900); #endif }
void Battery_Init(void) { #ifdef BATTERY_TASK uint8_t i; os_registerProcessStack(battery_task, "Battery", 200); nextPos = 0; for (i = 0; i < AVERAGING_WINDOW_SIZE; i++) measures[i] = 0; #endif }
xTaskHandle os_registerProcess(void(*function)(void), char * name) { return os_registerProcessStack(function, name, configMINIMAL_STACK_SIZE); }