These are chat archives for dronekit/dronekit-android

26th
Nov 2016
NbagusW
@NbagusW
Nov 26 2016 09:28

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 ..."
time.sleep(1)

print "Set Vehicle.armed=True (currently: %s)" % vehicle.armed
vehicle.armed = True
vehicle.flush()
while not vehicle.armed and not api.exit:
print " Waiting for arming..."
time.sleep(1)`

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.

Bill Bonney
@billbonney
Nov 26 2016 16:58
@NbagusW you don’t need to
and flush AFAIR was removed from dronekit-python 2.0
Peng Cheng
@tribbloid
Nov 26 2016 23:33
I advise you to forward the question to dronekit-python channel, this is for pure java library
@NbagusW sorry didn't read your question carefully :-)
this is the right place