mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-28 19:48:31 -04:00
StorageManager: added bind info storage area
This commit is contained in:
parent
3afaf81ccc
commit
ac324a3760
@ -45,6 +45,9 @@ const StorageManager::StorageArea StorageManager::layout_default[STORAGE_NUM_ARE
|
||||
{ StorageFence, 5676, 256},
|
||||
{ StorageMission, 5932, 2132},
|
||||
{ StorageKeys, 8064, 64},
|
||||
#ifdef HAL_RCINPUT_WITH_AP_RADIO
|
||||
{ StorageBindInfo,8128, 8},
|
||||
#endif
|
||||
#endif
|
||||
#if STORAGE_NUM_AREAS >= 12
|
||||
{ StorageParam, 8192, 1280},
|
||||
@ -71,6 +74,7 @@ const StorageManager::StorageArea StorageManager::layout_copter[STORAGE_NUM_AREA
|
||||
{ StorageFence, 5676, 256},
|
||||
{ StorageMission, 5932, 2132},
|
||||
{ StorageKeys, 8064, 64},
|
||||
{ StorageBindInfo,8128, 8},
|
||||
#endif
|
||||
#if STORAGE_NUM_AREAS >= 12
|
||||
{ StorageParam, 8192, 1280},
|
||||
|
@ -27,9 +27,9 @@
|
||||
storage. Use larger areas for other boards
|
||||
*/
|
||||
#if HAL_STORAGE_SIZE >= 16384
|
||||
#define STORAGE_NUM_AREAS 13
|
||||
#define STORAGE_NUM_AREAS 14
|
||||
#elif HAL_STORAGE_SIZE >= 8192
|
||||
#define STORAGE_NUM_AREAS 9
|
||||
#define STORAGE_NUM_AREAS 10
|
||||
#elif HAL_STORAGE_SIZE >= 4096
|
||||
#define STORAGE_NUM_AREAS 4
|
||||
#else
|
||||
@ -47,7 +47,8 @@ public:
|
||||
StorageFence = 1,
|
||||
StorageRally = 2,
|
||||
StorageMission = 3,
|
||||
StorageKeys = 4
|
||||
StorageKeys = 4,
|
||||
StorageBindInfo= 5
|
||||
};
|
||||
|
||||
// erase whole of storage
|
||||
|
Loading…
Reference in New Issue
Block a user