AP_Mission: support member functions for rover

This commit is contained in:
Andrew Tridgell 2015-05-12 16:59:03 +10:00
parent db13f657a8
commit 12cbf7888f

View File

@ -15,12 +15,13 @@
#ifndef AP_Mission_h
#define AP_Mission_h
#include <AP_HAL.h>
#include <AP_Vehicle.h>
#include <GCS_MAVLink.h>
#include <AP_Math.h>
#include <AP_Common.h>
#include <AP_Param.h>
#include <AP_AHRS.h>
#include <AP_HAL.h>
#include <../StorageManager/StorageManager.h>
// definitions
@ -215,8 +216,13 @@ public:
};
// main program function pointers
#if APM_BUILD_TYPE(APM_BUILD_APMrover2)
typedef DELEGATE_FUNCTION1(bool, const Mission_Command&) mission_cmd_fn_t;
typedef DELEGATE_FUNCTION0(void) mission_complete_fn_t;
#else
typedef bool (*mission_cmd_fn_t)(const Mission_Command& cmd);
typedef void (*mission_complete_fn_t)(void);
#endif
// mission state enumeration
enum mission_state {