QGC第三个页面

点击第三个图标,实际上进入的第四个页面

PlanView.qml

QGCView{
    id:_qgcView
    viewPanel:panel;
    z:QGroundControl.zOrderTopMost  
}
ToolStrip{
    id:toolStrip
    ...
    ...
    model:[
    {
        name:"Waypoint",
        iconSource:"/qmlimages/MapAddMission.svg",
        toggle:true 
    },
    {
        name:"In",
        iconSource:"/qmlimages/ZoomMinus.svg",  
    },
    ]

onClicked:{
    switch(index){
        case 0:
            _addWayPointOnClick=checked
            break
        case 1:
            if(_singleComplexItem){
            addComplexItem(_missionController.complex)
            break
            }
        case 4:
            editorMap.zoomLevel+=0.5
            break
        case 5:
            editorMap.zoomLevel-=0.5
            break
            }       
    }
}
}

//点击survey
出现MissionItem

在MissionSettingsEditor.qml中

Componnet{
    id:valueColumn
    anchors.left:   parent?parent.left:undefined
    anchors.rightt: parent?parent.right:undefined
    anchors.top:parent?parent.top:undefined
    spacing: _margin
    Column{
        anchors.left: parent.left
        anchors.right: parent.right
        spacing: _margin
        GridLayout{
            ...
            QGCLabel{
                text:qsTr("Waypoint alt")
            }
        FactTextField{
            fact:...
            Layout.fillWidth: true
        }

        QGCCheckBox{
            onClicked:missionItem.speedSection.specifyFlightSpeed=checked;
        }
        QGC
        }
    }
}

//当点击+的waypoint的时候
地图变成了有mousrArea的。点击地图上的点,都是从1开始编号,missionItem

当点击+号之后,出现H标志的home位置。
点击一次出现一个航点,第一个是takeoff,依次是waypoint

这个Mission里面,Mission Start里面点击有Vehicle Info

Planned Home Positopn

SectionHeader {
                id:         plannedHomePositionSection
                text:       qsTr("Planned Home Position")
                visible:    !_vehicleHasHomePosition
                checked:    false
            }


QGCLabel {
            text: qsTr("Altitude")
 }
 FactTextField {
               fact:              
               missionItem.plannedHomePositionAltitude
               Layout.fillWidth:   true
 }
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值