Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
8709078c
Commit
8709078c
authored
8 years ago
by
Lorenz Meier
Browse files
Options
Downloads
Patches
Plain Diff
Save some flash for much too verbose output
parent
585147d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ROMFS/px4fmu_common/init.d/rcS
+19
-27
19 additions, 27 deletions
ROMFS/px4fmu_common/init.d/rcS
with
19 additions
and
27 deletions
ROMFS/px4fmu_common/init.d/rcS
+
19
−
27
View file @
8709078c
...
...
@@ -195,7 +195,6 @@ then
#
if param compare SYS_AUTOSTART 0
then
echo "INFO [init] No autostart"
else
sh /etc/init.d/rc.autostart
fi
...
...
@@ -214,7 +213,7 @@ then
set FCONFIG /fs/microsd/etc/config.txt
if [ -f $FCONFIG ]
then
echo "
INFO [init]
Custom: $FCONFIG"
echo "Custom: $FCONFIG"
sh $FCONFIG
fi
unset FCONFIG
...
...
@@ -245,7 +244,7 @@ then
if px4io checkcrc ${IO_FILE}
then
echo "
INFO
[init] PX4IO CRC OK" >> $LOG_FILE
echo "[init] PX4IO CRC OK" >> $LOG_FILE
set IO_PRESENT yes
else
...
...
@@ -268,16 +267,16 @@ then
usleep 500000
if px4io checkcrc $IO_FILE
then
echo "
INFO [init]
PX4IO CRC OK after updating" >> $LOG_FILE
echo "PX4IO CRC OK after updating" >> $LOG_FILE
tone_alarm MLL8CDE
set IO_PRESENT yes
else
echo "
ERROR [init]
PX4IO update failed" >> $LOG_FILE
echo "PX4IO update failed" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
else
echo "
ERROR [init]
PX4IO update failed" >> $LOG_FILE
echo "PX4IO update failed" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
fi
...
...
@@ -285,7 +284,7 @@ then
if [ $IO_PRESENT == no ]
then
echo "
ERROR [init]
PX4IO not found" >> $LOG_FILE
echo "PX4IO not found" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
fi
...
...
@@ -377,7 +376,7 @@ then
then
if param compare UAVCAN_ENABLE 0
then
echo "
INFO [init]
OVERRIDING UAVCAN_ENABLE = 1" >> $LOG_FILE
echo "OVERRIDING UAVCAN_ENABLE = 1" >> $LOG_FILE
param set UAVCAN_ENABLE 1
fi
fi
...
...
@@ -388,7 +387,7 @@ then
then
sh /etc/init.d/rc.io
else
echo "
INFO [init]
PX4IO start failed" >> $LOG_FILE
echo "PX4IO start failed" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
fi
...
...
@@ -398,7 +397,7 @@ then
if fmu mode_$FMU_MODE
then
else
echo "
ERR [init]
FMU start failed" >> $LOG_FILE
echo "FMU start failed" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
...
...
@@ -430,7 +429,7 @@ then
if mkblctrl $MKBLCTRL_ARG
then
else
echo "
ERROR [init]
MK start failed" >> $LOG_FILE
echo "MK start failed" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
unset MKBLCTRL_ARG
...
...
@@ -442,7 +441,6 @@ then
if pwm_out_sim mode_port2_pwm8
then
else
echo "ERROR [init] PWM SIM start failed" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
fi
...
...
@@ -458,7 +456,7 @@ then
then
sh /etc/init.d/rc.io
else
echo "
ERROR [init]
PX4IO start failed" >> $LOG_FILE
echo "PX4IO start failed" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
fi
...
...
@@ -468,7 +466,7 @@ then
if fmu mode_$FMU_MODE
then
else
echo "
ERROR [init]
FMU mode_$FMU_MODE start failed" >> $LOG_FILE
echo "FMU mode_$FMU_MODE start failed" >> $LOG_FILE
tone_alarm $TUNE_ERR
fi
...
...
@@ -711,8 +709,6 @@ then
#
if [ $VEHICLE_TYPE == fw ]
then
echo "INFO [init] Fixedwing"
if [ $MIXER == none ]
then
# Set default mixer for fixed wing if not defined
...
...
@@ -739,11 +735,9 @@ then
#
if [ $VEHICLE_TYPE == mc ]
then
echo "INFO [init] Multicopter"
if [ $MIXER == none ]
then
echo "
INFO [init]
Mixer undefined"
echo "Mixer undefined"
fi
if [ $MAV_TYPE == none ]
...
...
@@ -790,7 +784,7 @@ then
# Still no MAV_TYPE found
if [ $MAV_TYPE == none ]
then
echo "
WARN [init]
Unknown MAV_TYPE"
echo "Unknown MAV_TYPE"
param set MAV_TYPE 2
else
param set MAV_TYPE $MAV_TYPE
...
...
@@ -808,11 +802,9 @@ then
#
if [ $VEHICLE_TYPE == vtol ]
then
echo "INFO [init] VTOL"
if [ $MIXER == none ]
then
echo "
WARN [init]
VTOL mixer undefined"
echo "VTOL mixer undefined"
fi
if [ $MAV_TYPE == none ]
...
...
@@ -835,7 +827,7 @@ then
# Still no MAV_TYPE found
if [ $MAV_TYPE == none ]
then
echo "
WARN [init]
Unknown MAV_TYPE"
echo "Unknown MAV_TYPE"
param set MAV_TYPE 19
else
param set MAV_TYPE $MAV_TYPE
...
...
@@ -919,14 +911,14 @@ then
#
if [ $VEHICLE_TYPE == none ]
then
echo "
WARN [init]
No autostart ID found"
echo "No autostart ID found"
fi
# Start any custom addons
set FEXTRAS /fs/microsd/etc/extras.txt
if [ -f $FEXTRAS ]
then
echo "
INFO [init]
Addons script: $FEXTRAS"
echo "Addons script: $FEXTRAS"
sh $FEXTRAS
fi
unset FEXTRAS
...
...
@@ -950,7 +942,7 @@ mavlink boot_complete
if [ $EXIT_ON_END == yes ]
then
echo "
INFO [init]
NSH exit"
echo "NSH exit"
exit
fi
unset EXIT_ON_END
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment