Changeset 124e727 in pyramid
- Timestamp:
- 10/24/13 17:31:41 (7 years ago)
- Branches:
- master
- Children:
- faaefd5
- Parents:
- a0ef241
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/Puzzlebox_Pyramid/Puzzlebox_Pyramid.ino
ra0ef241 r124e727 68 68 char _channel='A'; 69 69 char _command; 70 byte _attention_threshold = 67; //treshold for launching Orbit helicopter70 byte _attention_threshold = 70; //treshold for launching Orbit helicopter 71 71 int _throttle_hover=85; 72 72 … … 1228 1228 } 1229 1229 1230 else if (msg[0] == 0x8) { 1231 Serial.println("0x8"); 1232 if (msg[1] == 0x1) 1233 _channel = 'A'; 1234 else if (msg[1] == 0x2) 1235 _channel = 'B'; 1236 else if (msg[1] == 0x3) 1237 _channel = 'C'; 1238 Serial.println(_channel); 1239 } 1240 1230 1241 1231 1242 // Orbit Hover 1232 else if (msg[0] == 0x8) { 1233 1234 // Serial.println(" (msg[0] == 0x8) "); 1243 else if (msg[0] == 0x9) { 1235 1244 1236 1245 if (msg[1] == 0x1) { … … 1239 1248 _yaw = DEFAULT_YAW; 1240 1249 _pitch = DEFAULT_PITCH; 1241 // Serial.println(" (msg[1] == 0x1) ");1242 1250 } 1243 1251 else if (msg[1] == 0x0) { 1244 1252 setColorWheel(255,0,0); // Red 1245 // Serial.println(" (msg[1] == 0x0) ");1246 // _throttle = 0;1247 1253 _throttle = DEFAULT_THROTTLE; 1248 1254 _yaw = DEFAULT_YAW; … … 1250 1256 } 1251 1257 1252 } // (msg[0] == 0x8)1258 } // Hover 1253 1259 1254 1260 … … 1268 1274 } // parseADK 1269 1275 1270 1271 1272 1273 1274
Note: See TracChangeset
for help on using the changeset viewer.