if (element_len != 3) return -1;  course = (*element<<1) + ((*(element+1)&0x8000) >> 15); rawspeed = (get16(element+1) & 0x7ffff);
course = (*element<<1) | ((*(element+1)&0x80) >> 7); rawspeed = get16(element+1) & 0x7fff;
int decode_courseandspeed(unsigned char *element, int element_len) {	// 0x13 Course and Speed - Course in degrees, speed in 1/50 m/s	unsigned int course;	unsigned int rawspeed;	float speed;	if (element_len != 3) return -1;	course = (*element<<1) + ((*(element+1)&0x8000) >> 15);	rawspeed = (get16(element+1) & 0x7ffff);	speed = (float)rawspeed*0.072; // kph	if (course >= 360) return -2;	lprintf(T_OPENTRAC, "Course: %d Speed: %f kph\r\n", course, speed);	return 0;}