AP_HAL_SITL: rename dataflash to logger and refactor the filename logger.bin

This commit is contained in:
Tom Pittenger 2019-02-11 00:35:28 -08:00 committed by Peter Barker
parent 8845cc2053
commit c39cc7dbb8

View File

@ -10,6 +10,7 @@
#include <signal.h>
#include <unistd.h>
#include <AP_HAL/utility/getopt_cpp.h>
#include <AP_Logger/AP_Logger_SITL.h>
#include <SITL/SIM_Multicopter.h>
#include <SITL/SIM_Helicopter.h>
@ -47,7 +48,7 @@ void SITL_State::_usage(void)
{
printf("Options:\n"
"\t--help|-h display this help information\n"
"\t--wipe|-w wipe eeprom and dataflash\n"
"\t--wipe|-w wipe eeprom\n"
"\t--unhide-groups|-u parameter enumeration ignores AP_PARAM_FLAG_ENABLE\n"
"\t--speedup|-s SPEEDUP set simulation speedup\n"
"\t--rate|-r RATE set SITL framerate\n"
@ -232,7 +233,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
switch (opt) {
case 'w':
AP_Param::erase_all();
unlink("dataflash.bin");
unlink(AP_Logger_SITL::filename);
break;
case 'u':
AP_Param::set_hide_disabled_groups(false);