DataFlash: make the SITL dataflash log 4x larger
This commit is contained in:
parent
a86ec8c786
commit
900ea5dde0
@ -16,7 +16,7 @@
|
|||||||
#include "DataFlash.h"
|
#include "DataFlash.h"
|
||||||
|
|
||||||
#define DF_PAGE_SIZE 512
|
#define DF_PAGE_SIZE 512
|
||||||
#define DF_NUM_PAGES 4096
|
#define DF_NUM_PAGES 16384
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
@ -36,6 +36,7 @@ void DataFlash_SITL::Init(void)
|
|||||||
write(flash_fd, fill, DF_PAGE_SIZE*DF_NUM_PAGES);
|
write(flash_fd, fill, DF_PAGE_SIZE*DF_NUM_PAGES);
|
||||||
free(fill);
|
free(fill);
|
||||||
}
|
}
|
||||||
|
ftruncate(flash_fd, DF_PAGE_SIZE*DF_NUM_PAGES);
|
||||||
}
|
}
|
||||||
df_PageSize = DF_PAGE_SIZE;
|
df_PageSize = DF_PAGE_SIZE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user