|
|
|
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
|
|
|
|
############################################################################ |
|
|
|
|
# |
|
|
|
|
# Copyright (c) 2019 PX4 Development Team. All rights reserved. |
|
|
|
|
# Copyright (c) 2019-2021 PX4 Development Team. All rights reserved. |
|
|
|
|
# |
|
|
|
|
# Redistribution and use in source and binary forms, with or without |
|
|
|
|
# modification, are permitted provided that the following conditions |
|
|
|
@ -30,10 +30,18 @@
@@ -30,10 +30,18 @@
|
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE. |
|
|
|
|
# |
|
|
|
|
############################################################################ |
|
|
|
|
|
|
|
|
|
set(PARAM_PREFIX PWM_MAIN) |
|
|
|
|
|
|
|
|
|
if(CONFIG_BOARD_IO) |
|
|
|
|
set(PARAM_PREFIX PWM_AUX) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
px4_add_module( |
|
|
|
|
MODULE drivers__dshot |
|
|
|
|
MAIN dshot |
|
|
|
|
STACK_MAIN 1200 |
|
|
|
|
COMPILE_FLAGS |
|
|
|
|
-DPARAM_PREFIX="${PARAM_PREFIX}" |
|
|
|
|
SRCS |
|
|
|
|
DShot.cpp |
|
|
|
|
DShotTelemetry.cpp |
|
|
|
|