|
@@ -15,6 +15,9 @@ const Parameters::Param Parameters::params[] = {
|
|
|
{ "UAS_TYPE", Parameters::ParamType::UINT8, (const void*)&g.ua_type, 0, 0, 15 },
|
|
{ "UAS_TYPE", Parameters::ParamType::UINT8, (const void*)&g.ua_type, 0, 0, 15 },
|
|
|
{ "UAS_ID_TYPE", Parameters::ParamType::UINT8, (const void*)&g.id_type, 0, 0, 4 },
|
|
{ "UAS_ID_TYPE", Parameters::ParamType::UINT8, (const void*)&g.id_type, 0, 0, 4 },
|
|
|
{ "UAS_ID", Parameters::ParamType::CHAR20, (const void*)&g.uas_id[0], 0, 0, 0 },
|
|
{ "UAS_ID", Parameters::ParamType::CHAR20, (const void*)&g.uas_id[0], 0, 0, 0 },
|
|
|
|
|
+ { "UAS_TYPE_2", Parameters::ParamType::UINT8, (const void*)&g.ua_type_2, 0, 0, 15 },
|
|
|
|
|
+ { "UAS_ID_TYPE_2", Parameters::ParamType::UINT8, (const void*)&g.id_type_2, 0, 0, 4 },
|
|
|
|
|
+ { "UAS_ID_2", Parameters::ParamType::CHAR20, (const void*)&g.uas_id_2[0], 0, 0, 0 },
|
|
|
{ "BAUDRATE", Parameters::ParamType::UINT32, (const void*)&g.baudrate, 57600, 9600, 921600 },
|
|
{ "BAUDRATE", Parameters::ParamType::UINT32, (const void*)&g.baudrate, 57600, 9600, 921600 },
|
|
|
{ "WIFI_NAN_RATE", Parameters::ParamType::FLOAT, (const void*)&g.wifi_nan_rate, 0, 0, 5 },
|
|
{ "WIFI_NAN_RATE", Parameters::ParamType::FLOAT, (const void*)&g.wifi_nan_rate, 0, 0, 5 },
|
|
|
{ "WIFI_BCN_RATE", Parameters::ParamType::FLOAT, (const void*)&g.wifi_beacon_rate, 0, 0, 5 },
|
|
{ "WIFI_BCN_RATE", Parameters::ParamType::FLOAT, (const void*)&g.wifi_beacon_rate, 0, 0, 5 },
|
|
@@ -331,6 +334,11 @@ bool Parameters::have_basic_id_info(void) const
|
|
|
return strlen(g.uas_id) > 0 && g.id_type > 0 && g.ua_type > 0;
|
|
return strlen(g.uas_id) > 0 && g.id_type > 0 && g.ua_type > 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+bool Parameters::have_basic_id_2_info(void) const
|
|
|
|
|
+{
|
|
|
|
|
+ return strlen(g.uas_id_2) > 0 && g.id_type_2 > 0 && g.ua_type_2 > 0;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
bool Parameters::set_by_name_uint8(const char *name, uint8_t v)
|
|
bool Parameters::set_by_name_uint8(const char *name, uint8_t v)
|
|
|
{
|
|
{
|
|
|
const auto *f = find(name);
|
|
const auto *f = find(name);
|