mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:38:53 +08:00
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:
committed by
Lorenz Meier
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user