Skip to content
Snippets Groups Projects
Commit 97c96676 authored by dawehr's avatar dawehr
Browse files

Changed protection loops so quad doesn't send "The quad is ready to receive VRPN data"

parent 406abe1e
No related branches found
No related tags found
No related merge requests found
......@@ -28,12 +28,7 @@ int protection_loops(modular_structs_t *structs)
read_rec_all(rc_commands);
// wait until the ground station has connected to the quad and acknowledged that its ready to start
char buf[255] = {};
int length = snprintf(buf, sizeof(buf), "The quad is ready to receive VRPN data.\r\n");
length = length >= sizeof(buf) ? 255 : length;
while (!structs->user_input_struct.receivedBeginUpdate) {
send_data(MessageTypes[4].ID, MessageTypes[4].subtypes[1].ID, 0, buf, length);
process_received(structs);
usleep(10000);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment