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
}
Exemple #3
0
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
}
Exemple #4
0
Fichier : api.c Projet : el303/pses
xTaskHandle os_registerProcess(void(*function)(void), char * name) {
	return os_registerProcessStack(function, name, configMINIMAL_STACK_SIZE);
}