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
6c2436c2
Commit
6c2436c2
authored
6 years ago
by
Daniel Agar
Browse files
Options
Downloads
Patches
Plain Diff
move fmu-v4pro init to rc.board
parent
d940f500
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/rc.sensors
+0
-21
0 additions, 21 deletions
ROMFS/px4fmu_common/init.d/rc.sensors
ROMFS/px4fmu_common/init.d/rcS
+3
-9
3 additions, 9 deletions
ROMFS/px4fmu_common/init.d/rcS
boards/px4/fmu-v4pro/init/rc.board
+46
-0
46 additions, 0 deletions
boards/px4/fmu-v4pro/init/rc.board
with
49 additions
and
30 deletions
ROMFS/px4fmu_common/init.d/rc.sensors
+
0
−
21
View file @
6c2436c2
...
...
@@ -244,27 +244,6 @@ then
fi
fi
if ver hwcmp PX4_FMU_V4PRO
then
# Internal SPI bus ICM-20608-G
mpu6000 -R 2 -T 20608 start
# Internal SPI bus ICM-20602
mpu6000 -R 2 -T 20602 start
# Internal SPI bus mpu9250
mpu9250 -R 2 start
# Internal SPI bus
lis3mdl -R 0 start
# Possible external compasses
hmc5883 -C -T -X start
#RM3100
rm3100 start
fi
if ver hwcmp ATMEL_SAME70XPLAINED_V1
then
# External I2C bus
...
...
This diff is collapsed.
Click to expand it.
ROMFS/px4fmu_common/init.d/rcS
+
3
−
9
View file @
6c2436c2
...
...
@@ -15,10 +15,9 @@ set +e
#
#------------------------------------------------------------------------------
#
# UART mapping on FMUv2/3
/4
:
# UART mapping on FMUv2/3:
#
# UART1 /dev/ttyS0 IO debug (except v4, there ttyS0 is the wifi,
# v4pro: TELEM3)
# UART1 /dev/ttyS0 IO debug
# USART2 /dev/ttyS1 TELEM1 (flow control)
# USART3 /dev/ttyS2 TELEM2 (flow control)
# UART4
...
...
@@ -338,11 +337,6 @@ else
#
if [ $AUTOCNF = yes ]
then
# Run FMU as task on Pixracer and on boards with enough RAM.
if ver hwcmp PX4_FMU_V4PRO PX4_FMU_V5
then
param set SYS_FMU_TASK 1
fi
# Disable safety switch by default on OmnibusF4SD.
if ver hwcmp OMNIBUS_F4SD
...
...
@@ -555,7 +549,7 @@ else
#
# Launch the flow sensor as a background task.
#
if ver hwcmp PX4_FMU_V2 PX4_FMU_V4
PX4_FMU_V4PRO
AIRMIND_MINDPX_V2 OMNIBUS_F4SD
if ver hwcmp PX4_FMU_V2 PX4_FMU_V4 AIRMIND_MINDPX_V2 OMNIBUS_F4SD
then
px4flow start &
fi
...
...
This diff is collapsed.
Click to expand it.
boards/px4/fmu-v4pro/init/rc.board
0 → 100644
+
46
−
0
View file @
6c2436c2
#!nsh
#
# PX4 FMUv4pro specific board init
#
#------------------------------------------------------------------------------
#
# UART mapping on FMUv4pro:
#
# UART1 /dev/ttyS0 TELEM3
# USART2 /dev/ttyS1 TELEM1 (flow control)
# USART3 /dev/ttyS2 TELEM2 (flow control)
# UART4 /dev/ttyS3 TELEM4
# USART6 /dev/ttyS4 TELEM3 (flow control)
# UART7 /dev/ttyS5
# UART8 /dev/ttyS6 CONSOLE
#
#------------------------------------------------------------------------------
#
if [ $AUTOCNF = yes ]
then
param set SYS_FMU_TASK 1
fi
set LOGGER_BUF 64
# Internal SPI bus ICM-20608-G
mpu6000 -R 2 -T 20608 start
# Internal SPI bus ICM-20602
mpu6000 -R 2 -T 20602 start
# Internal SPI bus mpu9250
mpu9250 -R 2 start
# Internal SPI bus
lis3mdl -R 0 start
# Possible external compasses
hmc5883 -C -T -X start
# RM3100
rm3100 start
px4flow start &
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