Browse Source

Rover: sailboat class formatting fixes

move constructor to top of sailboat.h
move var_info to be the last public declaration
remove some spaces
mission-4.1.18
Randy Mackay 6 years ago
parent
commit
79feb4edb8
  1. 10
      APMrover2/sailboat.h

10
APMrover2/sailboat.h

@ -20,8 +20,8 @@ class Sailboat
{ {
public: public:
// var_info for holding Parameter information // constructor
static const struct AP_Param::GroupInfo var_info[]; Sailboat();
// enabled // enabled
bool sail_enabled() const { return enable > 0;} bool sail_enabled() const { return enable > 0;}
@ -29,9 +29,6 @@ public:
// true if sailboat navigation (aka tacking) is enabled // true if sailboat navigation (aka tacking) is enabled
bool nav_enabled() const; bool nav_enabled() const;
// constructor
Sailboat();
// setup // setup
void init(); void init();
@ -76,6 +73,9 @@ public:
FORCE_MOTOR = 2 FORCE_MOTOR = 2
} throttle_state; } throttle_state;
// var_info for holding Parameter information
static const struct AP_Param::GroupInfo var_info[];
private: private:
// Check if we should assist with throttle // Check if we should assist with throttle

Loading…
Cancel
Save