mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 22:03:35 +08:00
Fine tuning
This commit is contained in:
@@ -153,10 +153,6 @@ int ardrone_control_main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* open uarts */
|
|
||||||
printf("[ardrone_control] AR.Drone UART is %s\n", ardrone_uart_name);
|
|
||||||
ardrone_write = open(ardrone_uart_name, O_RDWR | O_NOCTTY | O_NDELAY);
|
|
||||||
|
|
||||||
/* initialize motors */
|
/* initialize motors */
|
||||||
|
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
@@ -195,10 +191,6 @@ int ardrone_control_main(int argc, char *argv[])
|
|||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* close uarts */
|
|
||||||
close(ardrone_write);
|
|
||||||
ar_multiplexing_deinit(gpios);
|
|
||||||
|
|
||||||
printf("[ardrone_control] ending now...\r\n");
|
printf("[ardrone_control] ending now...\r\n");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user