From 20d7216179529255b6632933ebe9706ade983997 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 10 Nov 2017 11:54:34 +0900 Subject: [PATCH] Copter: remove comments non-functional change --- ArduCopter/FlightMode.h | 44 +++++++++++++++--------------- ArduCopter/FlightMode_AVOID_ADSB.h | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/ArduCopter/FlightMode.h b/ArduCopter/FlightMode.h index f213523c2d..f2b35dba15 100644 --- a/ArduCopter/FlightMode.h +++ b/ArduCopter/FlightMode.h @@ -36,7 +36,7 @@ public: protected: virtual bool init(bool ignore_checks) = 0; - virtual void run() = 0; // should be called at 100hz or more + virtual void run() = 0; virtual bool is_autopilot() const { return false; } virtual bool requires_GPS() const = 0; @@ -174,7 +174,7 @@ public: Copter::FlightMode(copter) { } virtual bool init(bool ignore_checks) override; - virtual void run() override; // should be called at 100hz or more + virtual void run() override; virtual bool is_autopilot() const override { return false; } virtual bool requires_GPS() const override { return false; } @@ -202,7 +202,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; protected: private: @@ -220,7 +220,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return false; } bool has_manual_throttle() const override { return false; } @@ -247,7 +247,7 @@ public: { } virtual bool init(bool ignore_checks) override; - virtual void run() override; // should be called at 100hz or more + virtual void run() override; virtual bool requires_GPS() const override { return false; } virtual bool has_manual_throttle() const override { return true; } @@ -295,7 +295,7 @@ public: { } virtual bool init(bool ignore_checks) override; - virtual void run() override; // should be called at 100hz or more + virtual void run() override; virtual bool is_autopilot() const override { return true; } virtual bool requires_GPS() const override { return true; } @@ -373,7 +373,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -411,7 +411,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -457,7 +457,7 @@ public: Copter::FlightMode(copter) { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -523,7 +523,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return false; } bool has_manual_throttle() const override { return false; } @@ -558,10 +558,10 @@ public: { } bool init(bool ignore_checks) override; - void run() override { // should be called at 100hz or more + void run() override { return run(true); } - void run(bool disarm_on_land); // should be called at 100hz or more + void run(bool disarm_on_land); bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -635,7 +635,7 @@ public: { } virtual bool init(bool ignore_checks) override; - virtual void run() override; // should be called at 100hz or more + virtual void run() override; virtual bool requires_GPS() const override { return true; } virtual bool has_manual_throttle() const override { return false; } @@ -664,7 +664,7 @@ public: { } virtual bool init(bool ignore_checks) override; - virtual void run() override; // should be called at 100hz or more + virtual void run() override; virtual bool requires_GPS() const override { return false; } virtual bool has_manual_throttle() const override { return false; } @@ -691,7 +691,7 @@ public: { } virtual bool init(bool ignore_checks) override; - virtual void run() override; // should be called at 100hz or more + virtual void run() override; virtual bool requires_GPS() const override { return false; } virtual bool has_manual_throttle() const override { return false; } @@ -722,7 +722,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return false; } bool has_manual_throttle() const override { return false; } @@ -876,7 +876,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -912,7 +912,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -943,7 +943,7 @@ public: Copter::FlightMode_GUIDED(copter) { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -972,7 +972,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -1011,7 +1011,7 @@ public: Copter::FlightMode_GUIDED(copter) { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } @@ -1042,7 +1042,7 @@ public: { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; } diff --git a/ArduCopter/FlightMode_AVOID_ADSB.h b/ArduCopter/FlightMode_AVOID_ADSB.h index 011e495b53..c42e6bb9c5 100644 --- a/ArduCopter/FlightMode_AVOID_ADSB.h +++ b/ArduCopter/FlightMode_AVOID_ADSB.h @@ -6,7 +6,7 @@ public: Copter::FlightMode_GUIDED(copter) { } bool init(bool ignore_checks) override; - void run() override; // should be called at 100hz or more + void run() override; bool requires_GPS() const override { return true; } bool has_manual_throttle() const override { return false; }