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
a615f57c
Commit
a615f57c
authored
9 years ago
by
Julian Oes
Committed by
Lorenz Meier
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
rcS: Make the passthrough option a vehicle_type
parent
a9a20e0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ROMFS/px4fmu_common/init.d/20000_snapdragon_rc_pwm
+1
-1
1 addition, 1 deletion
ROMFS/px4fmu_common/init.d/20000_snapdragon_rc_pwm
ROMFS/px4fmu_common/init.d/rcS
+35
-30
35 additions, 30 deletions
ROMFS/px4fmu_common/init.d/rcS
with
36 additions
and
31 deletions
ROMFS/px4fmu_common/init.d/20000_snapdragon_rc_pwm
+
1
−
1
View file @
a615f57c
...
...
@@ -9,4 +9,4 @@
# This startup can be used on Pixhawk/Pixfalcon/Pixracer for the
# passthrough of RC input and PWM output.
set
PASSTHROUGH yes
set
VEHICLE_TYPE passthrough
This diff is collapsed.
Click to expand it.
ROMFS/px4fmu_common/init.d/rcS
+
35
−
30
View file @
a615f57c
...
...
@@ -133,7 +133,6 @@ then
set GPS yes
set GPS_FAKE no
set FAILSAFE none
set PASSTHROUGH no
#
# Set AUTOCNF flag to use it in AUTOSTART scripts
...
...
@@ -734,6 +733,40 @@ then
param set MAV_TYPE 10
fi
#
# For snapdragon, we need a passthrough mode
# Do not run any mavlink instances since we need the serial port for
# communication with Snapdragon.
#
if [ $VEHICLE_TYPE == passthrough ]
then
mavlink stop-all
# Stop multicopter attitude controller if it is running, the controls come
# from Snapdragon.
if mc_att_control stop
then
fi
# Start snapdragon interface on serial port.
if ver hwcmp PX4FMU_V2
then
# On Pixfalcon use the standard telemetry port (Telem 1).
snapdragon_rc_pwm start -d /dev/ttyS1
px4io start
fi
if ver hwcmp PX4FMU_V4
then
# On Pixracer use Telem 2 port (TL2).
snapdragon_rc_pwm start -d /dev/ttyS2
fmu mode_pwm4
fi
# Arm straightaway.
pwm arm
fi
unset MIXER
unset MAV_TYPE
unset OUTPUT_MODE
...
...
@@ -808,41 +841,13 @@ then
nshterm /dev/ttyACM0 &
else
# Don't start mavlink in passthrough mode because we currently can't seem to stop it.
if [ $
PASSTHROUGH == no
]
if [ $
VEHICLE_TYPE != passthrough
]
then
mavlink start -r 800000 -d /dev/ttyACM0 -m config -x
fi
fi
# For snapdragon, we need a passthrough mode
# Do not run any mavlink instances since we need the serial port for
# communication with Snapdragon.
if [ $PASSTHROUGH == yes ]
then
mavlink stop-all
# Stop multicopter attitude controller if it is running, the controls come
# from Snapdragon.
if mc_att_control stop
then
fi
# Start snapdragon interface on serial port.
if ver hwcmp PX4FMU_V2
then
# On Pixfalcon use the standard telemetry port (Telem 1).
snapdragon_rc_pwm start -d /dev/ttyS1
fi
if ver hwcmp PX4FMU_V4
then
# On Pixracer use Telem 2 port (TL2).
snapdragon_rc_pwm start -d /dev/ttyS2
fi
fi
if [ $EXIT_ON_END == yes ]
then
echo "Exit from nsh"
...
...
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