diff options
author | Julian Oes <julian@oes.ch> | 2013-12-04 10:37:51 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-12-16 17:12:37 +0100 |
commit | e8df08f13905c2a71d71469ba7d6cecc23c2eb70 (patch) | |
tree | 51e076cb91969907687ff3719338622d4023b327 /src/modules | |
parent | e034f5135ebabeb751ea775f2d79440cf74c8047 (diff) | |
download | px4-firmware-e8df08f13905c2a71d71469ba7d6cecc23c2eb70.tar.gz px4-firmware-e8df08f13905c2a71d71469ba7d6cecc23c2eb70.tar.bz2 px4-firmware-e8df08f13905c2a71d71469ba7d6cecc23c2eb70.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 */ |