Is MAVLINK flightplan also something "not supported" by Sphinx?

@priols: I’m just asking this, because I cannot make your sample code run on the Sphinx:

From the drone_ip I wouldn’t expect a fail:

I’m getting error 415. Here is the dump:

PUT /api/v1/upload/flightplan HTTP/1.1
Host: 192.168.188.118
User-Agent: python-requests/2.28.1
Accept-Encoding: gzip, deflate
Accept: application/json, text/javascript, text/plain */*; q=0.01
Connection: keep-alive
X-Requested-With: XMLHttpRequest
Content-type: application/json; charset=UTF-8; application/gzip
Content-Length: 566

QGC WPL 120
0   1       3       22      15.000000       0.000000        0.000000        nan     48.878601       2.366549        15.000000       1
1   0       3       16      0.000000        0.000000        0.000000        0.000000        48.879000       2.366549        20.000000       1
2   0       3       16      0.000000        0.000000        0.000000        0.000000        48.879139       2.367296        10.000000        1
3   0       3       21      0.000000        0.000000        0.000000        nan     48.879139       2.367296        0.000000        1

HTTP/1.1 415 Unsupported Media Type
Connection: close
Cache-Control: no-cache
Access-Control-Allow-Origin: *

Not tested with a real drone yet.

Hehe… “solved via phone call”… That’s quite nice

Using the flightplan tab in browser with real drone or simulator gives the same “Bad content type” or so.

For both, simulator and drone.

Well, here we go again…

Works now. The reason was an extra empty line in the file :roll_eyes:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.