These are chat archives for dronekit/dronekit-android
its a phyton code :
`# Set vehicle mode and armed attributes (the only settable attributes)
print "Set Vehicle.mode=GUIDED (currently: %s)" % vehicle.mode.name
vehicle.mode = VehicleMode("GUIDED")
vehicle.flush() # Flush to guarantee that previous writes to the vehicle have taken place
while not vehicle.mode.name=='GUIDED' and not api.exit: #Wait until mode has changed
print " Waiting for mode change ..."
print "Set Vehicle.armed=True (currently: %s)" % vehicle.armed
vehicle.armed = True
while not vehicle.armed and not api.exit:
print " Waiting for arming..."
hi guys, how can i call vehicle.flush() in java dronekit android like that dronekit phytone.. ty guys, hopefully someone can help me at this.