File tree Expand file tree Collapse file tree
gcs/src/components/missions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ import {
1919
2020const coordsFractionDigits = 9
2121
22+ function getDisplayCommandName ( commandName ) {
23+ if ( commandName . startsWith ( "MAV_CMD_NAV_" ) ) {
24+ commandName = commandName . replace ( "MAV_CMD_NAV_" , "" )
25+ } else if ( commandName . startsWith ( "MAV_CMD_" ) ) {
26+ commandName = commandName . replace ( "MAV_CMD_" , "" )
27+ }
28+
29+ return commandName
30+ }
31+
2232function getAvailableCommands ( ) {
2333 var commandsList = FENCE_ITEM_COMMANDS_LIST
2434
@@ -55,16 +65,6 @@ export default function FenceItemsTableRow({
5565 updateMissionItem ( fenceItemData )
5666 } , [ fenceItemData ] )
5767
58- function getDisplayCommandName ( commandName ) {
59- if ( commandName . startsWith ( "MAV_CMD_NAV_" ) ) {
60- commandName = commandName . replace ( "MAV_CMD_NAV_" , "" )
61- } else if ( commandName . startsWith ( "MAV_CMD_" ) ) {
62- commandName = commandName . replace ( "MAV_CMD_" , "" )
63- }
64-
65- return commandName
66- }
67-
6868 function updateFenceItemData ( key , newVal ) {
6969 setFenceItemData ( {
7070 ...fenceItemData ,
You can’t perform that action at this time.
0 commit comments