Project

General

Profile

Revision 1196

finished sending encoder data

View differences:

main.c
56 56
static void message_send_encoders (int length, uint8_t *data){
57 57
	int left = encoder_read(LEFT);
58 58
	int right = encoder_read(RIGHT);
59
	
59
	int vals[2];
60
	vals[0] = left;
61
	vals[1] = right;
62
	wl_send_global_packet (robot_station_group, robot_station_data_encoders, (char*)vals, 8, 0);
60 63
}
61 64

  
62 65
void station_robot_receive(char type, int source, unsigned char* packet, int length)

Also available in: Unified diff