AP_HAL: added get_custom_defaults_file() to Util

This commit is contained in:
Andrew Tridgell 2016-01-07 09:09:09 +11:00
parent f8b52c6a67
commit 5f4bd10477
2 changed files with 9 additions and 0 deletions

View File

@ -417,4 +417,8 @@
#define HAL_OS_POSIX_IO 0
#endif
#ifndef HAL_PARAM_DEFAULTS_PATH
#define HAL_PARAM_DEFAULTS_PATH NULL
#endif
#endif // __AP_HAL_BOARDS_H__

View File

@ -23,6 +23,11 @@ public:
virtual const char* get_custom_log_directory() { return NULL; }
virtual const char* get_custom_terrain_directory() const { return NULL; }
// get path to custom defaults file for AP_Param
virtual const char* get_custom_defaults_file() const {
return HAL_PARAM_DEFAULTS_PATH;
}
// run a debug shall on the given stream if possible. This is used
// to support dropping into a debug shell to run firmware upgrade
// commands