mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 15:44:07 +08:00
Fine tuning
This commit is contained in:
parent
e9af999dc6
commit
1a3f78657e
@ -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 */
|
||||
|
||||
int counter = 0;
|
||||
@ -195,10 +191,6 @@ int ardrone_control_main(int argc, char *argv[])
|
||||
counter++;
|
||||
}
|
||||
|
||||
/* close uarts */
|
||||
close(ardrone_write);
|
||||
ar_multiplexing_deinit(gpios);
|
||||
|
||||
printf("[ardrone_control] ending now...\r\n");
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user