ArduCopter: cope with AP_AVOIDANCE_ENABLED being false
This commit is contained in:
parent
e4ff1a97d5
commit
f4bb15d8cd
@ -195,7 +195,11 @@
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Follow - follow another vehicle or GCS
|
||||
#ifndef MODE_FOLLOW_ENABLED
|
||||
# define MODE_FOLLOW_ENABLED AP_FOLLOW_ENABLED
|
||||
#if AP_FOLLOW_ENABLED && AP_AVOIDANCE_ENABLED
|
||||
#define MODE_FOLLOW_ENABLED ENABLED
|
||||
#else
|
||||
#define MODE_FOLLOW_ENABLED DISABLED
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -1774,7 +1774,7 @@ private:
|
||||
|
||||
};
|
||||
|
||||
#if AP_FOLLOW_ENABLED
|
||||
#if MODE_FOLLOW_ENABLED == ENABLED
|
||||
class ModeFollow : public ModeGuided {
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user