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
f51595ab
Commit
f51595ab
authored
8 years ago
by
Lucas De Marchi
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix setting output mode in the wrong place
Make it common with other boards
parent
8fe765c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ROMFS/px4fmu_common/init.d/4070_aerofc
+1
-2
1 addition, 2 deletions
ROMFS/px4fmu_common/init.d/4070_aerofc
ROMFS/px4fmu_common/init.d/rc.interface
+8
-8
8 additions, 8 deletions
ROMFS/px4fmu_common/init.d/rc.interface
ROMFS/px4fmu_common/init.d/rcS
+5
-0
5 additions, 0 deletions
ROMFS/px4fmu_common/init.d/rcS
with
14 additions
and
10 deletions
ROMFS/px4fmu_common/init.d/4070_aerofc
+
1
−
2
View file @
f51595ab
...
...
@@ -9,8 +9,7 @@ sh /etc/init.d/rc.mc_defaults
tap_esc start -d /dev/ttyS0 -n 4
usleep 300000
set OUTPUT_MODE rcin
set OUTPUT_DEV /dev/tap_esc
set OUTPUT_MODE tap_esc
set MIXER quad_x
set USE_IO no
...
...
This diff is collapsed.
Click to expand it.
ROMFS/px4fmu_common/init.d/rc.interface
+
8
−
8
View file @
f51595ab
...
...
@@ -31,16 +31,11 @@ then
fi
fi
if ver hwcmp AEROFC_V1
# Do nothing
if [ $OUTPUT_MODE == mkblctrl ]
then
set OUTPUT_DEV /dev/mkblctrl0
else
if [ $OUTPUT_MODE == mkblctrl ]
then
set OUTPUT_DEV /dev/mkblctrl0
else
set OUTPUT_DEV /dev/pwm_output0
fi
set OUTPUT_DEV /dev/pwm_output0
fi
if [ $OUTPUT_MODE == uavcan_esc ]
...
...
@@ -48,6 +43,11 @@ then
set OUTPUT_DEV /dev/uavcan/esc
fi
if [ $OUTPUT_MODE == tap_esc ]
then
set OUTPUT_DEV /dev/tap_esc
fi
if mixer load $OUTPUT_DEV $MIXER_FILE
then
echo "INFO [init] Mixer: $MIXER_FILE on $OUTPUT_DEV"
...
...
This diff is collapsed.
Click to expand it.
ROMFS/px4fmu_common/init.d/rcS
+
5
−
0
View file @
f51595ab
...
...
@@ -323,6 +323,11 @@ then
set FMU_MODE gpio_serial
fi
if [ $OUTPUT_MODE == tap_esc ]
then
set FMU_MODE rcin
fi
if [ $HIL == yes ]
then
set OUTPUT_MODE hil
...
...
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