63
edits
Changes
Day 5
,→Log
= Log =
# <code>MAV_CMD_NAV_TAKEOFF_LOCAL</code> is not support in px4 (command 24), so we are forced to use the one without _LOCAL. For this reason we are force to send absolute altitude which turns out to be tricky:MAVlink uses WGS84 convention for altitude and latitude in global position messages (i.e <code>GPS_RAW_INT</code> the one used by mavros to gather information about current GPS fix) while it use AMSL convention for '''altitude'''. On the other hand, mavros global_position plugin, publish messages with altitude converted in WGS84 using the GeographicLib library (operation which requires 24 MB to be loaded on ram). In this way we would have to reconvert altitude back before adding the require offset to obtain the absolute altitude used in TAKEOFF mavlink message.'''We choose''' to modify mavros global_position plugin so that it does not convert altitude. Now we have an exact mapping between MAVLink and mavros global position messages and the problem of having different conventions no more occurs.
= KML Parser Library for Python =