mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Renamed OUTPUT_MODE: can --> uavcan_esc
This commit is contained in:
@@ -24,4 +24,4 @@ then
|
|||||||
param set MC_YAWRATE_D 0.0
|
param set MC_YAWRATE_D 0.0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set OUTPUT_MODE can
|
set OUTPUT_MODE uavcan_esc
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ then
|
|||||||
set OUTPUT_DEV /dev/pwm_output
|
set OUTPUT_DEV /dev/pwm_output
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $OUTPUT_MODE == can ]
|
if [ $OUTPUT_MODE == uavcan_esc ]
|
||||||
then
|
then
|
||||||
set OUTPUT_DEV /dev/uavcan/esc
|
set OUTPUT_DEV /dev/uavcan/esc
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ then
|
|||||||
# If OUTPUT_MODE == none then something is wrong with setup and we shouldn't try to enable output
|
# If OUTPUT_MODE == none then something is wrong with setup and we shouldn't try to enable output
|
||||||
if [ $OUTPUT_MODE != none ]
|
if [ $OUTPUT_MODE != none ]
|
||||||
then
|
then
|
||||||
if [ $OUTPUT_MODE == can ]
|
if [ $OUTPUT_MODE == uavcan_esc ]
|
||||||
then
|
then
|
||||||
if uavcan start 1
|
if uavcan start 1
|
||||||
then
|
then
|
||||||
@@ -302,7 +302,7 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $OUTPUT_MODE == io -o $OUTPUT_MODE == can ]
|
if [ $OUTPUT_MODE == io -o $OUTPUT_MODE == uavcan_esc ]
|
||||||
then
|
then
|
||||||
echo "[init] Use PX4IO PWM as primary output"
|
echo "[init] Use PX4IO PWM as primary output"
|
||||||
if px4io start
|
if px4io start
|
||||||
|
|||||||
Reference in New Issue
Block a user