Skip to content

Commit

Permalink
wip webserver module
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Jun 23, 2024
1 parent 137dc97 commit d26f5a3
Show file tree
Hide file tree
Showing 10 changed files with 1,609 additions and 2,048 deletions.
995 changes: 4 additions & 991 deletions Tools/AP_Periph/Web/scripts/pppgw_webui.lua

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ def configure_env(self, cfg, env):
"-D__AP_LINE__=__LINE__",
]

if not cfg.options.disable_networking:
env.ROMFS_FILES += [('scripts/modules/web.lua','libraries/AP_Scripting/modules/webserver.lua'),
('scripts/webgui.lua','libraries/AP_Scripting/applets/net_webserver.lua')]
# add files from ROMFS_custom
custom_dir = 'ROMFS_custom'
if os.path.exists(custom_dir):
Expand Down
8 changes: 8 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,11 @@ define HAL_FORWARD_OTG2_SERIAL 7
define HAL_HAVE_DUAL_USB_CDC 1
define DEFAULT_SERIAL7_PROTOCOL SerialProtocol_MAVLink2
define DEFAULT_SERIAL7_BAUD 2000000

// ROMFS filesystem only
define AP_FILESYSTEM_ROMFS_ENABLED 1

// allow scripts to add parameters
define AP_PARAM_DYNAMIC_ENABLED 1

ROMFS_DIRECTORY libraries/AP_Networking/Web
Loading

0 comments on commit d26f5a3

Please sign in to comment.