Plane: check the parameter table on startup

This commit is contained in:
Andrew Tridgell 2014-01-31 13:07:52 +11:00
parent 688f61c087
commit 48577ffbc2

View File

@ -999,6 +999,10 @@ const AP_Param::ConversionInfo conversion_table[] PROGMEM = {
static void load_parameters(void)
{
if (!AP_Param::check_var_info()) {
cliSerial->printf_P(PSTR("Bad parameter table\n"));
hal.scheduler->panic(PSTR("Bad parameter table"));
}
if (!g.format_version.load() ||
g.format_version != Parameters::k_format_version) {