diff --git a/src/components/InfoWindow/InfoWindow.jsx b/src/components/InfoWindow/InfoWindow.jsx index 12821fa..8ba6251 100644 --- a/src/components/InfoWindow/InfoWindow.jsx +++ b/src/components/InfoWindow/InfoWindow.jsx @@ -32,6 +32,8 @@ class InfoWindow extends Component { commandText = `Waypoint (${this.props.command} / ${this.getType()} ) `; } else if (this.props.command === 21) { commandText = `Land (${this.props.command} / ${this.getType()} ) `; + } else if (this.props.command === 203) { + commandText = `Take a Picture (${this.props.command} / ${this.getType()} ) `; } return commandText; diff --git a/src/components/InfoWindow/data/commands.js b/src/components/InfoWindow/data/commands.js index 22e785f..8f7a03b 100644 --- a/src/components/InfoWindow/data/commands.js +++ b/src/components/InfoWindow/data/commands.js @@ -38,6 +38,10 @@ const commands = [ { value: 112, label: 'MAV_CMD_CONDITION_DELAY' + }, + { + value: 203, + label: 'Take a Picture' } ] diff --git a/src/routes/MissionPlanner/components/MissionPlannerView.jsx b/src/routes/MissionPlanner/components/MissionPlannerView.jsx index e262e80..88f71fe 100644 --- a/src/routes/MissionPlanner/components/MissionPlannerView.jsx +++ b/src/routes/MissionPlanner/components/MissionPlannerView.jsx @@ -66,7 +66,10 @@ export const getMarkerProps = (item, updateMissionItem) => { export const MissionPlannerView = ({mission, updateMissionItem, addMissionItem, deleteMissionItem, loadNfz, noFlyZones}) => { const missionItemsExt = getMissionItemsExt(mission); - const markersExt = missionItemsExt.map((item) => getMarkerProps(item, updateMissionItem)); + const filteredMissionItemsExt = missionItemsExt.filter((item) => { + return (item.command !== 203); + }); + const markersExt = filteredMissionItemsExt.map((item) => getMarkerProps(item, updateMissionItem)); return (
diff --git a/src/routes/MissionPlanner/components/MissionSidebarItem/MissionSidebarItem.jsx b/src/routes/MissionPlanner/components/MissionSidebarItem/MissionSidebarItem.jsx index a374a94..b2b00d1 100644 --- a/src/routes/MissionPlanner/components/MissionSidebarItem/MissionSidebarItem.jsx +++ b/src/routes/MissionPlanner/components/MissionSidebarItem/MissionSidebarItem.jsx @@ -46,6 +46,8 @@ export class MissionSidebarItem extends Component { commandText = `Waypoint (${this.props.command} / ${this.getType()} ) `; } else if (this.props.command === 21) { commandText = `Land (${this.props.command} / ${this.getType()} ) `; + } else if (this.props.command === 203) { + commandText = `Take a Picture (${this.props.command} / ${this.getType()} ) `; } return commandText; diff --git a/src/routes/MissionPlanner/components/MissionSidebarItem/data/commands.js b/src/routes/MissionPlanner/components/MissionSidebarItem/data/commands.js index af8b477..3cc1ef7 100644 --- a/src/routes/MissionPlanner/components/MissionSidebarItem/data/commands.js +++ b/src/routes/MissionPlanner/components/MissionSidebarItem/data/commands.js @@ -38,6 +38,10 @@ const commands = [ value: 112, label: 'MAV_CMD_CONDITION_DELAY', }, + { + value: 203, + label: 'Take a Picture', + }, ]; export default commands; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy