diff options
author | Julian Oes <julian@oes.ch> | 2013-12-04 10:37:51 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-12-04 10:37:51 +0100 |
commit | 56834414f1e37dd5f091685d3acd643d767dc0fa (patch) | |
tree | 039c569b3830ee310e09618af851935c30c6796e /src/modules | |
parent | 03a54260012bffb63ae052829d1258ba81cfdebc (diff) | |
download | px4-firmware-56834414f1e37dd5f091685d3acd643d767dc0fa.tar.gz px4-firmware-56834414f1e37dd5f091685d3acd643d767dc0fa.tar.bz2 px4-firmware-56834414f1e37dd5f091685d3acd643d767dc0fa.zip |
Dataman: Also reserve space for onboard missions
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/dataman/dataman.c | 1 | ||||
-rw-r--r-- | src/modules/dataman/dataman.h | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/dataman/dataman.c b/src/modules/dataman/dataman.c index dd3573d9a..acd612d9e 100644 --- a/src/modules/dataman/dataman.c +++ b/src/modules/dataman/dataman.c @@ -112,6 +112,7 @@ static const unsigned g_per_item_max_index[DM_KEY_NUM_KEYS] = { DM_KEY_SAFE_POINTS_MAX, DM_KEY_FENCE_POINTS_MAX, DM_KEY_WAYPOINTS_MAX, + DM_KEY_WAYPOINTS_ONBOARD_MAX }; /* Table of offset for index 0 of each item type */ diff --git a/src/modules/dataman/dataman.h b/src/modules/dataman/dataman.h index 9e1f789ad..dab96eb9b 100644 --- a/src/modules/dataman/dataman.h +++ b/src/modules/dataman/dataman.h @@ -50,7 +50,8 @@ extern "C" { typedef enum { DM_KEY_SAFE_POINTS = 0, /* Safe points coordinates, safe point 0 is home point */ DM_KEY_FENCE_POINTS, /* Fence vertex coordinates */ - DM_KEY_WAYPOINTS, /* Mission way point coordinates */ + DM_KEY_WAYPOINTS, /* Mission way point coordinates sent over mavlink */ + DM_KEY_WAYPOINTS_ONBOARD, /* Mission way point coordinates generated onboard */ DM_KEY_NUM_KEYS /* Total number of item types defined */ } dm_item_t; @@ -58,7 +59,8 @@ extern "C" { enum { DM_KEY_SAFE_POINTS_MAX = 8, DM_KEY_FENCE_POINTS_MAX = GEOFENCE_MAX_VERTICES, - DM_KEY_WAYPOINTS_MAX = NUM_MISSIONS_SUPPORTED + DM_KEY_WAYPOINTS_MAX = NUM_MISSIONS_SUPPORTED, + DM_KEY_WAYPOINTS_ONBOARD_MAX = NUM_MISSIONS_SUPPORTED }; /* Data persistence levels */ |