Cleanup of lots of debugging printfs

This commit is contained in:
Julian Oes
2012-09-27 17:08:29 +02:00
parent 7f15309892
commit 2c5c314105
6 changed files with 2 additions and 31 deletions
+2 -9
View File
@@ -141,7 +141,6 @@ static int ardrone_open_uart(char *uart_name, struct termios *uart_config_origin
int uart;
/* open uart */
//printf("[ardrone_interface] UART is %s, baud rate is%d\n",uart_name,speed);
uart = open(uart_name, O_RDWR | O_NOCTTY);
/* Try to set baud rate */
@@ -238,15 +237,14 @@ int ardrone_interface_thread_main(int argc, char *argv[])
/* declare and safely initialize all structs */
struct vehicle_status_s state;
//memset(&state, 0, sizeof(state));
memset(&state, 0, sizeof(state));
struct actuator_controls_s actuator_controls;
//memset(&actuator_controls, 0, sizeof(actuator_controls));
memset(&actuator_controls, 0, sizeof(actuator_controls));
struct actuator_armed_s armed;
armed.armed = false;
/* subscribe to attitude, motor setpoints and system state */
int actuator_controls_sub = orb_subscribe(ORB_ID_VEHICLE_ATTITUDE_CONTROLS);
int state_sub = orb_subscribe(ORB_ID(vehicle_status));
int armed_sub = orb_subscribe(ORB_ID(actuator_armed));
@@ -328,11 +326,6 @@ int ardrone_interface_thread_main(int argc, char *argv[])
* if in failsafe
*/
if (armed.armed && !armed.lockdown) {
//printf("AMO_BEF: Roll: %4.4f, Pitch: %4.4f, Yaw: %4.4f, Thrust: %4.4f\n",actuator_controls.control[0], actuator_controls.control[1], actuator_controls.control[2], actuator_controls.control[3]);
ardrone_mixing_and_output(ardrone_write, &actuator_controls);
} else {