Browse Source

Copter: remove comments

non-functional change
master
Randy Mackay 7 years ago
parent
commit
20d7216179
  1. 44
      ArduCopter/FlightMode.h
  2. 2
      ArduCopter/FlightMode_AVOID_ADSB.h

44
ArduCopter/FlightMode.h

@ -36,7 +36,7 @@ public: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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; }

2
ArduCopter/FlightMode_AVOID_ADSB.h

@ -6,7 +6,7 @@ public: @@ -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; }

Loading…
Cancel
Save