Hello
Before taking off, DISCO needs to be shook first. I have read the tutorial but I still cannot figure out how to shake a DISCO. Does anyone know how to shake? Could you please show me an example or code?
Thanks very much
Liu
Hello
Before taking off, DISCO needs to be shook first. I have read the tutorial but I still cannot figure out how to shake a DISCO. Does anyone know how to shake? Could you please show me an example or code?
Thanks very much
Liu
Hi,
First you need to install a jsonrpc client library in your python environment :
(olympe-python3) $ pip3 install jsonrpclib-pelix
Launch Sphinx Disco example :
$ sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/disco.drone::stolen_interface=
and then from your script, use the jsonrpclib module to trigger the “fixedwings_shake/handling” action :
import jsonrpclib
import olympe
import olympe_deps as od
from olympe.messages.ardrone3.Piloting import TakeOff
sphinx_client = jsonrpclib.Server("http://127.0.0.1:8383")
drone = olympe.Drone("10.202.0.1", od.ARSDK_DEVICE_TYPE_EVINRUDE)
drone.connection()
sphinx_client.TriggerAction(
machine="disco", # this should match the drone name in the .drone file
object="fixedwings_shake/handling",
action="start"
)
drone(TakeOff()).wait()
Hello, ndessart
It works, thank you very much. You’ve helped my many many times:blush:
Regards
Liu