These are chat archives for dronekit/dronekit-android

8th
Jan 2016
tongzahub
@tongzahub
Jan 08 2016 18:33

event Arm ,but don't need set DroneHome

event Arm in Utils.java

I need Arm ,But don't need set HomeDrone
how to solution

code in Utils.java
public static void getArmingConfirmation(FragmentManager fm, final Drone drone){

getActionConfirmation("arm", fm, new Runnable() {
    @Override
    public void run() {

        VehicleApi.getApi(drone).arm(true);


    }
});

}

I want set event WayPoint ---> Land and I want new Button RTL AUTO {arm-take off , RTL mode }
but i have problem DroneHome change

image

https://cloud.githubusercontent.com/assets/12952880/12195780/61b263e6-b62c-11e5-91e6-321b735e12eb.jpg

How to Arm ,But non set Drone Home ?
Thank You

Fredia Huya-Kouadio
@ne0fhyk
Jan 08 2016 18:34
@tongzahub not quite possible. arming always set the drone home location.
what you can do though, is alter that location once the drone has taken off. The same strategy is used to implement return to me in Tower.
It makes use of the VehicleApi#enableReturnToMe(...)) dronekit-android api.
tongzahub
@tongzahub
Jan 08 2016 18:47
ิิnow, I solution problem by I new missionProxy.addWaypoints ()
Waypoints point one Is first Arm Locaton and point two Is new Arm
tongzahub
@tongzahub
Jan 08 2016 19:02
Now . I Need to know Status Drone .when Drone Arm ---Takeoff and Change Mode to Auto for Waypoints A - B -C Point .How to know? Drone is Waypoints completed
Fredia Huya-Kouadio
@ne0fhyk
Jan 08 2016 19:04
@tongzahub you have to listen to the MISSION_ITEM_UPDATED event.
tongzahub
@tongzahub
Jan 08 2016 19:11
thank you sir