These are chat archives for dronekit/dronekit-android

13th
Jan 2016
Nattharee
@Nattharee
Jan 13 2016 11:18
Excuseme, I was learning in tower-joystick code but I've a question about servo on GimbalApi.class . And I've a question about this parameter ( --- final GimbalApi.GimbalOrientationListener listener ---- ) I don't know a value of this . So , What is a value of this parameter ?
tongzahub
@tongzahub
Jan 13 2016 14:17
top Question it success .
But I have new Question
I new missionProxy and add 2 waypoint [missionProxy.add(x,y)]
http://www.mx7.com/view2/yQMmbSSm1lDE8LcM
tongzahub
@tongzahub
Jan 13 2016 14:29
I new missionProxy and add 2 waypoint [missionProxy.add(x,y)]
arm -- auto mode ---waypoint success but i need lock altitude or pause drone
http://www.mx7.com/i/d1e/qfDnFr.jpg
chaviw
@chaviw
Jan 13 2016 16:56
@Nattharee you need to create an instance of the GimbalApi.GimbalOrientationListener. Pass that object to the any method call to the GimbalApi class. Methods like startGimbalControl(), stopGimbalControl()
chaviw
@chaviw
Jan 13 2016 17:02
@tongzahub I don’t know completely what you’re trying to accomplish, but you can listen for the broadcast AttributeEvent.GPS_POSITION. Once you receive that broadcast, you can check the GPS and altitude properties of the drone to determine it’s location. You can get the GPS and altitude like this drone.getAttribute(AttributeType.GPS) and drone.getAttribute(AttributeType. ALTITUDE). With this information, you should be able determine when to pause the vehicle in code