These are chat archives for dronekit/dronekit-android

3rd
Feb 2016
Nattharee
@Nattharee
Feb 03 2016 07:13
Excuseme, How can I know that drone is already landing ?
How can I know that drone is already landing ? and motor stopped after. Where I can check it on Tower Application?
chaviw
@chaviw
Feb 03 2016 18:11

@Nattharee The information about drone states can be found using the attribute type AttributeType.STATE, by calling drone.getAttribute(AttributeType.STATE). This will give you the state of the drone, where you can look up the VehicleMode, isFlying(), and isArmed().

You can also wait for broadcasts to deteremine when the state has changed. The attribute events can be found here https://github.com/dronekit/dronekit-android/blob/develop/ClientLib/src/main/java/com/o3dr/services/android/lib/drone/attribute/AttributeEvent.java. In your case I’d recommend listening for AttirbuteEvent. STATE_ARMING and AttributeEvent.STATE_VEHICLE_MODE and possibly AttributeEvent.STATE_UPDATED

Fredia Huya-Kouadio
@ne0fhyk
Feb 03 2016 19:14
@MouliKav are you able set pwm values for any other channel?