Christopher Foley
/
ESE519_WIFI_CONTROLLER
a
Fork of ESE519_Lab6_part1_skeleton by
Diff: main.cpp
- Revision:
- 6:e0c358a351aa
- Parent:
- 4:3044edf0cc5d
- Child:
- 7:ca226305d28b
--- a/main.cpp Tue Oct 25 15:11:18 2016 +0000 +++ b/main.cpp Mon Oct 15 18:29:01 2018 +0000 @@ -260,7 +260,7 @@ int main (void) { //Set the Channel. 0 is default, 15 is max - uint8_t channel = 2; //channel = (Group# - 1) + uint8_t channel = 9; //channel = (Group# - 1) mrf.SetChannel(channel); //Set Baud rate (9600-115200 is ideal) @@ -272,7 +272,7 @@ //Scale Joystick Values, range[-100, 100] jstick.setScale(-100, 100); - + int counter = 0; while(1) { //(1) Read Joystick Values, round to int8_t presision jstick_h = (int8_t)jstick.horizontal(); @@ -297,12 +297,13 @@ //(4) Process data with our protocal communication_protocal(rxLen); - + counter++; //Print values once we recieve and process data pc.printf("Received| "); pc.printf(COMMUNICATION_FORMAT, jstick_h, jstick_v, knob1, knob2, knob3, knob4, button); pc.printf("\r\n"); }//main if + pc.printf("Received %d transmissions \r\n", counter); #endif #ifdef SEND