From 08619a96beacf1eb27698c3de07da9619cb756cd Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 1 Dec 2016 14:50:15 +0900 Subject: [PATCH] AP_Beacon: remove debug and editor settings thanks to muramura for spotting this --- libraries/AP_Beacon/AP_Beacon.cpp | 1 - libraries/AP_Beacon/AP_Beacon.h | 1 - libraries/AP_Beacon/AP_Beacon_Backend.cpp | 8 -------- libraries/AP_Beacon/AP_Beacon_Backend.h | 1 - libraries/AP_Beacon/AP_Beacon_Pozyx.cpp | 2 -- libraries/AP_Beacon/AP_Beacon_Pozyx.h | 1 - libraries/AP_Beacon/AP_Beacon_SITL.cpp | 1 - libraries/AP_Beacon/AP_Beacon_SITL.h | 1 - 8 files changed, 16 deletions(-) diff --git a/libraries/AP_Beacon/AP_Beacon.cpp b/libraries/AP_Beacon/AP_Beacon.cpp index 1e6cfd7461..43237df859 100644 --- a/libraries/AP_Beacon/AP_Beacon.cpp +++ b/libraries/AP_Beacon/AP_Beacon.cpp @@ -1,4 +1,3 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/libraries/AP_Beacon/AP_Beacon.h b/libraries/AP_Beacon/AP_Beacon.h index 67274b2820..eab3751fdf 100644 --- a/libraries/AP_Beacon/AP_Beacon.h +++ b/libraries/AP_Beacon/AP_Beacon.h @@ -1,4 +1,3 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/libraries/AP_Beacon/AP_Beacon_Backend.cpp b/libraries/AP_Beacon/AP_Beacon_Backend.cpp index 4241edb880..312bbefac2 100644 --- a/libraries/AP_Beacon/AP_Beacon_Backend.cpp +++ b/libraries/AP_Beacon/AP_Beacon_Backend.cpp @@ -1,4 +1,3 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -33,9 +32,6 @@ void AP_Beacon_Backend::set_vehicle_position(const Vector3f& pos, float accuracy _frontend.veh_pos_update_ms = AP_HAL::millis(); _frontend.veh_pos_accuracy = accuracy_estimate; _frontend.veh_pos_ned = correct_for_orient_yaw(pos); - - // debug - //::printf("vehicle x:%4.2f y:%4.2f z:%4.2f error:%4.2f\n", (double)pos.x, (double)pos.y, (double)pos.z, (double)accuracy_estimate); } // set individual beacon distance in meters @@ -54,8 +50,6 @@ void AP_Beacon_Backend::set_beacon_distance(uint8_t beacon_instance, float dista _frontend.beacon_state[beacon_instance].distance_update_ms = AP_HAL::millis(); _frontend.beacon_state[beacon_instance].distance = distance; _frontend.beacon_state[beacon_instance].healthy = true; - - //::printf("beacon %d dist:%4.2f\n", (int)beacon_instance, (double)distance); } // configure beacon's position in meters from origin @@ -72,8 +66,6 @@ void AP_Beacon_Backend::set_beacon_position(uint8_t beacon_instance, const Vecto _frontend.num_beacons = beacon_instance+1; } - //::printf("beacon %d x:%4.2f y:%4.2f z:%4.2f\n", (int)beacon_instance, (double)pos.x, (double)pos.y, (double)pos.z); - // set position after correcting yaw _frontend.beacon_state[beacon_instance].position = correct_for_orient_yaw(pos); } diff --git a/libraries/AP_Beacon/AP_Beacon_Backend.h b/libraries/AP_Beacon/AP_Beacon_Backend.h index 05bb33c1d1..20632ddb0e 100644 --- a/libraries/AP_Beacon/AP_Beacon_Backend.h +++ b/libraries/AP_Beacon/AP_Beacon_Backend.h @@ -1,4 +1,3 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/libraries/AP_Beacon/AP_Beacon_Pozyx.cpp b/libraries/AP_Beacon/AP_Beacon_Pozyx.cpp index d029715df6..c27f392df1 100644 --- a/libraries/AP_Beacon/AP_Beacon_Pozyx.cpp +++ b/libraries/AP_Beacon/AP_Beacon_Pozyx.cpp @@ -1,4 +1,3 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,7 +45,6 @@ void AP_Beacon_Pozyx::update(void) counter++; if (counter > 200) { counter = 0; - //::printf("b\n"); } if (uart == nullptr) { diff --git a/libraries/AP_Beacon/AP_Beacon_Pozyx.h b/libraries/AP_Beacon/AP_Beacon_Pozyx.h index 00acc36bf2..9378ceb989 100644 --- a/libraries/AP_Beacon/AP_Beacon_Pozyx.h +++ b/libraries/AP_Beacon/AP_Beacon_Pozyx.h @@ -1,4 +1,3 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- #pragma once #include "AP_Beacon_Backend.h" diff --git a/libraries/AP_Beacon/AP_Beacon_SITL.cpp b/libraries/AP_Beacon/AP_Beacon_SITL.cpp index dae884df1f..10001e16cc 100644 --- a/libraries/AP_Beacon/AP_Beacon_SITL.cpp +++ b/libraries/AP_Beacon/AP_Beacon_SITL.cpp @@ -1,4 +1,3 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/libraries/AP_Beacon/AP_Beacon_SITL.h b/libraries/AP_Beacon/AP_Beacon_SITL.h index 240260e275..49b2d966c0 100644 --- a/libraries/AP_Beacon/AP_Beacon_SITL.h +++ b/libraries/AP_Beacon/AP_Beacon_SITL.h @@ -1,4 +1,3 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- #pragma once #include "AP_Beacon_Backend.h"