I can't seem to get a simple CherryPy Server working with DroneKit. The code below works fine when I execute it out of mavproxy using python drone.py but when I enter mavproxy and execute it using api start drone.py , none of the CherryPy debug messages appear and I just get "STABILIZE> APIThread-0 exiting..."
#drone.py
import cherrypy
class HelloWorld(object):
@cherrypy.expose
def index(self):
return "Hello world!"
if __name__ == '__main__':
cherrypy.quickstart(HelloWorld())
I'm trying this on a RaspberryPi2 and the 'drone delivery" demo which also uses CherryPy works on it.
I can't seem to get a simple CherryPy Server working with DroneKit. The code below works fine when I execute it out of mavproxy using
python drone.pybut when I enter mavproxy and execute it usingapi start drone.py, none of the CherryPy debug messages appear and I just get "STABILIZE> APIThread-0 exiting..."I'm trying this on a RaspberryPi2 and the 'drone delivery" demo which also uses CherryPy works on it.