Renamed OUTPUT_MODE: can --> uavcan_esc

This commit is contained in:
Pavel Kirienko
2014-07-07 02:31:05 +04:00
parent 324322cb29
commit dae9b48462
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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