|
1 | 1 | //////////////////////////////////////////////////////////////////////////////
|
2 | 2 | //////////////////////////////////////////////////////////////////////////////
|
3 | 3 |
|
4 |
| -// This file contains funcitons that process the data that is recieved from the |
| 4 | +// This file contains functions that process the data that is received from the |
5 | 5 | // raspberry pi
|
6 | 6 |
|
7 | 7 | //////////////////////////////////////////////////////////////////////////////
|
@@ -105,19 +105,19 @@ void PopulateArray()
|
105 | 105 |
|
106 | 106 | // temp string used to store the char array
|
107 | 107 | // easier to do opperations on string than chars
|
108 |
| - String recieved_string = ""; |
| 108 | + String received_string = ""; |
109 | 109 | // give the string the value of the char array
|
110 |
| - recieved_string = received_chars; |
| 110 | + received_string = received_chars; |
111 | 111 |
|
112 |
| - // now lets populate the motor command array with values from the recieved |
| 112 | + // now lets populate the motor command array with values from the received |
113 | 113 | // string
|
114 | 114 | for (int i = 0; i < NUMBER_MOTORS; i++)
|
115 | 115 | {
|
116 | 116 | int search1 = (i * 2);
|
117 | 117 | int search2 = ((i * 2) + 1);
|
118 | 118 |
|
119 |
| - String value1 = getValue(recieved_string, ',', search1); |
120 |
| - String value2 = getValue(recieved_string, ',', search2); |
| 119 | + String value1 = getValue(received_string, ',', search1); |
| 120 | + String value2 = getValue(received_string, ',', search2); |
121 | 121 |
|
122 | 122 | if (value1 == "Up")
|
123 | 123 | {
|
|
0 commit comments