AP_Periph: add support for Networking
This commit is contained in:
parent
1cc83223af
commit
3bd1b3f7ed
@ -100,6 +100,10 @@ void AP_Periph_FW::init()
|
||||
|
||||
can_start();
|
||||
|
||||
#if AP_NETWORKING_ENABLED
|
||||
networking.init();
|
||||
#endif
|
||||
|
||||
#if HAL_GCS_ENABLED
|
||||
stm32_watchdog_pat();
|
||||
gcs().init();
|
||||
@ -476,6 +480,10 @@ void AP_Periph_FW::update()
|
||||
|
||||
can_update();
|
||||
|
||||
#if AP_NETWORKING_ENABLED
|
||||
networking.update();
|
||||
#endif
|
||||
|
||||
#if (defined(HAL_PERIPH_NEOPIXEL_COUNT_WITHOUT_NOTIFY) && HAL_PERIPH_NEOPIXEL_COUNT_WITHOUT_NOTIFY == 8) || defined(HAL_PERIPH_ENABLE_NOTIFY)
|
||||
update_rainbow();
|
||||
#endif
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include <AP_Scripting/AP_Scripting.h>
|
||||
#include <AP_HAL/CANIface.h>
|
||||
#include <AP_Stats/AP_Stats.h>
|
||||
#include <AP_Networking/AP_Networking.h>
|
||||
#include <AP_SerialManager/AP_SerialManager.h>
|
||||
#include <AP_ESC_Telem/AP_ESC_Telem_config.h>
|
||||
#if HAL_WITH_ESC_TELEM
|
||||
@ -303,6 +304,10 @@ public:
|
||||
AP_Logger logger;
|
||||
#endif
|
||||
|
||||
#if AP_NETWORKING_ENABLED
|
||||
AP_Networking networking;
|
||||
#endif
|
||||
|
||||
#if HAL_GCS_ENABLED
|
||||
GCS_Periph _gcs;
|
||||
#endif
|
||||
|
@ -551,6 +551,12 @@ const AP_Param::Info AP_Periph_FW::var_info[] = {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if AP_NETWORKING_ENABLED
|
||||
// @Group: NET_
|
||||
// @Path: ../libraries/AP_Networking/AP_Networking.cpp
|
||||
GOBJECT(networking, "NET_", AP_Networking),
|
||||
#endif
|
||||
|
||||
AP_VAREND
|
||||
};
|
||||
|
||||
|
@ -76,6 +76,7 @@ public:
|
||||
k_param_esc_number1,
|
||||
k_param_pole_count1,
|
||||
k_param_esc_serial_port1,
|
||||
k_param_networking,
|
||||
};
|
||||
|
||||
AP_Int16 format_version;
|
||||
|
@ -44,6 +44,7 @@ def build(bld):
|
||||
'AP_FlashStorage',
|
||||
'AP_RAMTRON',
|
||||
'AP_GPS',
|
||||
'AP_Networking',
|
||||
'AP_SerialManager',
|
||||
'AP_RTC',
|
||||
'AP_Compass',
|
||||
|
Loading…
Reference in New Issue
Block a user