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 (
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: