From 259a1b621579e8e90050272a7683f9ec1cf9f4c2 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Wed, 8 Jan 2025 11:50:41 -0300 Subject: [PATCH] mavlink: Add MAVLink inspection tool This tool can help users on debugging of MAVLink related problems. It allows the user to see the messages that are being received by Cockpit, as well as the ones being sent. This was already useful before being merged on a situation where we needed to know if the proper `MANUAL_CONTROL` messages were being sent. --- src/App.vue | 6 + src/components/ConfigurationMenu.vue | 6 + .../development/MAVLinkInspector.vue | 112 ++++++++++++++++++ src/views/ConfigurationMAVLinkView.vue | 33 ++++++ 4 files changed, 157 insertions(+) create mode 100644 src/components/development/MAVLinkInspector.vue create mode 100644 src/views/ConfigurationMAVLinkView.vue diff --git a/src/App.vue b/src/App.vue index f50106e6c..bad7ca06b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -354,6 +354,7 @@ import ConfigurationDevelopmentView from './views/ConfigurationDevelopmentView.v import ConfigurationGeneralView from './views/ConfigurationGeneralView.vue' import ConfigurationJoystickView from './views/ConfigurationJoystickView.vue' import ConfigurationTelemetryView from './views/ConfigurationLogsView.vue' +import ConfigurationMAVLinkView from './views/ConfigurationMAVLinkView.vue' import ConfigurationMissionView from './views/ConfigurationMissionView.vue' import ConfigurationUIView from './views/ConfigurationUIView.vue' import ConfigurationVideoView from './views/ConfigurationVideoView.vue' @@ -411,6 +412,11 @@ const configMenu = [ title: 'Dev', component: markRaw(ConfigurationDevelopmentView) as ConfigComponent, }, + { + icon: 'mdi-protocol', + title: 'MAVLink', + component: markRaw(ConfigurationMAVLinkView) as ConfigComponent, + }, { icon: 'mdi-map-marker-path', title: 'Mission', diff --git a/src/components/ConfigurationMenu.vue b/src/components/ConfigurationMenu.vue index 13e1f080f..5a691f328 100644 --- a/src/components/ConfigurationMenu.vue +++ b/src/components/ConfigurationMenu.vue @@ -42,6 +42,7 @@ import ConfigurationDevelopmentView from '../views/ConfigurationDevelopmentView. import ConfigurationGeneralView from '../views/ConfigurationGeneralView.vue' import ConfigurationJoystickView from '../views/ConfigurationJoystickView.vue' import ConfigurationLogsView from '../views/ConfigurationLogsView.vue' +import ConfigurationMAVLinkView from '../views/ConfigurationMAVLinkView.vue' import ConfigurationMissionView from '../views/ConfigurationMissionView.vue' import ConfigurationVideoView from '../views/ConfigurationVideoView.vue' @@ -81,6 +82,11 @@ const menus = [ title: 'Development', component: markRaw(ConfigurationDevelopmentView), }, + { + icon: 'mdi-protocol', + title: 'MAVLink', + component: markRaw(ConfigurationMAVLinkView), + }, { icon: 'mdi-rocket', title: 'Mission', diff --git a/src/components/development/MAVLinkInspector.vue b/src/components/development/MAVLinkInspector.vue new file mode 100644 index 000000000..99c00859e --- /dev/null +++ b/src/components/development/MAVLinkInspector.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/views/ConfigurationMAVLinkView.vue b/src/views/ConfigurationMAVLinkView.vue new file mode 100644 index 000000000..518e1c441 --- /dev/null +++ b/src/views/ConfigurationMAVLinkView.vue @@ -0,0 +1,33 @@ + + + +