forked from Archive/PX4-Autopilot
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:
parent
723d3c121a
commit
b9b9f17eee
|
@ -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):
|
||||
"""
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
#include <systemlib/err.h>
|
||||
|
||||
#include <drivers/drv_mag.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#include <uORB/topics/parameter_update.h>
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
#include <systemlib/err.h>
|
||||
|
||||
#include <drivers/drv_baro.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#include <board_config.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue