Fix build errors (#5436)

* Use sorted to fix python3 build error

* Add drv_hrt.h include to Bebop df wrappers
This commit is contained in:
Michael Schäuble 2016-09-03 12:34:27 +02:00 committed by Lorenz Meier
parent 723d3c121a
commit b9b9f17eee
3 changed files with 3 additions and 2 deletions

View File

@ -129,8 +129,7 @@ class Parameter(object):
Return list of existing bitmask codes in convenient order
"""
keys = self.bitmask.keys()
keys.sort(key=float)
return keys
return sorted(keys, key=float)
def GetBitmaskBit(self, index):
"""

View File

@ -53,6 +53,7 @@
#include <systemlib/err.h>
#include <drivers/drv_mag.h>
#include <drivers/drv_hrt.h>
#include <uORB/topics/parameter_update.h>

View File

@ -53,6 +53,7 @@
#include <systemlib/err.h>
#include <drivers/drv_baro.h>
#include <drivers/drv_hrt.h>
#include <board_config.h>