public byte actionToByte(Action a) {
		byte b = 0;
		switch (a) {
		case DO_NOTHING:
			b = 0;
			break;
		case OUTPUT_MAX_HEIGHT:
			b = 1;
			break;
		case OUTPUT_MAX_LAUNCH_HEIGHT:
			b = 2;
			break;
		case OUTPUT_LAUNCH_WINDOW_END_HEIGHT:
			b = 3;
			break;
		case OUTPUT_BATTERY_VOLTAGE:
			b = 4;
			break;
		}
		return b;
	}