mirror of https://github.com/ArduPilot/ardupilot
Tools: add can-zero board
This commit is contained in:
parent
d728eef685
commit
e384c78904
|
@ -1528,6 +1528,19 @@ class obal(linux):
|
|||
CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_OBAL_V1',
|
||||
)
|
||||
|
||||
class canzero(linux):
|
||||
toolchain = 'arm-linux-gnueabihf'
|
||||
|
||||
def __init__(self):
|
||||
self.with_can = True
|
||||
|
||||
def configure_env(self, cfg, env):
|
||||
super(canzero, self).configure_env(cfg, env)
|
||||
|
||||
env.DEFINES.update(
|
||||
CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_CANZERO',
|
||||
)
|
||||
|
||||
class SITL_static(sitl):
|
||||
def configure_env(self, cfg, env):
|
||||
super(SITL_static, self).configure_env(cfg, env)
|
||||
|
|
|
@ -70,6 +70,7 @@ class BoardList(object):
|
|||
Board("bbbmini"),
|
||||
Board("blue"),
|
||||
Board("pxfmini"),
|
||||
Board("canzero"),
|
||||
Board("SITL_x86_64_linux_gnu"),
|
||||
Board("SITL_arm_linux_gnueabihf"),
|
||||
]
|
||||
|
|
|
@ -68,6 +68,7 @@ class BoardSubType(enum.Enum):
|
|||
LINUX_NAVIGATOR = 1023
|
||||
LINUX_VNAV = 1024
|
||||
LINUX_OBAL = 1025
|
||||
LINUX_CANZERO = 1026
|
||||
CHIBIOS_SKYVIPER_F412 = 5000
|
||||
CHIBIOS_FMUV3 = 5001
|
||||
CHIBIOS_FMUV4 = 5002
|
||||
|
|
Loading…
Reference in New Issue