a

Fork of ESE519_Lab6_part1_skeleton by Carter Sharer

Revision:
9:b8801ba7d7c2
Parent:
7:ca226305d28b
Child:
10:dafae6093487
diff -r cc7eb86a4b2f -r b8801ba7d7c2 main.cpp
--- a/main.cpp	Wed Oct 24 21:02:19 2018 +0000
+++ b/main.cpp	Thu Oct 25 02:36:38 2018 +0000
@@ -9,7 +9,7 @@
 #include <string>
 #include "Joystick.h"
 #include "wifiGETWrapper.h"
-//#define SEND        //Uncomment if you want to transmit data
+#define SEND        //Uncomment if you want to transmit data
 
 #define NONE 250
 
@@ -195,8 +195,10 @@
     //Set Baud rate (9600-115200 is ideal)
     pc.baud(115200);
     pc.printf("\r\n Start! \r\n");
-    //This is the wifi network in Detkin that we will be using. If you are somewhere else, change this line.
-    initConnection("hp-setup-1","WelcomeHal");
+    //This is an example wifi connection! Please fill this in with the SSID of your BBBL and the password too.
+    const char * SSID = "BeagleBone-365E";
+    const char * password = "BeagleBone";
+    initConnection(SSID,password);
     //Start Timer
     timer.start();
 
@@ -207,7 +209,7 @@
         //(1) Read Joystick Values, round to int8_t presision
         jstick_h = (int8_t)jstick.horizontal();
         jstick_v = (int8_t)jstick.vertical();
-        //pc.printf("H: %0.2f V:%0.2f \r\n", jstick.horizontal(), jstick.vertical());
+        pc.printf("H: %0.2f V:%0.2f \r\n", jstick_h, jstick_v);
 
         //(2) Read Pot Values, Scale, and round to precision
         knob1 = (uint8_t)(pot1.read() * 100); //rounded to uint8_t