AP_Vehicle: added AP_Networking::Port NET_Pn_ parameters

This commit is contained in:
Andrew Tridgell 2023-11-16 14:45:23 +11:00 committed by Tom Pittenger
parent f9f07912e6
commit ba0598930e

View File

@ -210,8 +210,37 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = {
// @Group: NET_
// @Path: ../AP_Networking/AP_Networking.cpp
AP_SUBGROUPINFO(networking, "NET_", 21, AP_Vehicle, AP_Networking),
/*
the NET_Pn_ parameters need to be in AP_Vehicle as otherwise we
are too deep in the parameter tree
*/
#if AP_NETWORKING_NUM_PORTS > 0
// @Group: NET_P1_
// @Path: ../AP_Networking/AP_Networking_port.cpp
AP_SUBGROUPINFO(networking.ports[0], "NET_P1_", 22, AP_Vehicle, AP_Networking::Port),
#endif
#if AP_NETWORKING_NUM_PORTS > 1
// @Group: NET_P2_
// @Path: ../AP_Networking/AP_Networking_port.cpp
AP_SUBGROUPINFO(networking.ports[1], "NET_P2_", 23, AP_Vehicle, AP_Networking::Port),
#endif
#if AP_NETWORKING_NUM_PORTS > 2
// @Group: NET_P3_
// @Path: ../AP_Networking/AP_Networking_port.cpp
AP_SUBGROUPINFO(networking.ports[2], "NET_P3_", 24, AP_Vehicle, AP_Networking::Port),
#endif
#if AP_NETWORKING_NUM_PORTS > 3
// @Group: NET_P4_
// @Path: ../AP_Networking/AP_Networking_port.cpp
AP_SUBGROUPINFO(networking.ports[3], "NET_P4_", 25, AP_Vehicle, AP_Networking::Port),
#endif
#endif // AP_NETWORKING_ENABLED
AP_GROUPEND
};