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
a4830f8d
Commit
a4830f8d
authored
6 years ago
by
Daniel Agar
Browse files
Options
Downloads
Patches
Plain Diff
move omnibus_f4sd init to rc.board
parent
60ade5d8
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
-16
0 additions, 16 deletions
ROMFS/px4fmu_common/init.d/rc.sensors
ROMFS/px4fmu_common/init.d/rcS
+1
-27
1 addition, 27 deletions
ROMFS/px4fmu_common/init.d/rcS
boards/omnibus/f4sd/init/rc.board
+49
-0
49 additions, 0 deletions
boards/omnibus/f4sd/init/rc.board
with
50 additions
and
43 deletions
ROMFS/px4fmu_common/init.d/rc.sensors
+
0
−
16
View file @
a4830f8d
...
...
@@ -94,22 +94,6 @@ then
l3gd20 -R 14 start
fi
if ver hwcmp OMNIBUS_F4SD
then
if ! mpu6000 -R 12 -s start
then
# some boards such as the Hobbywing XRotor F4 G2 use the ICM-20602
mpu6000 -R 12 -T 20602 -s start
fi
# Possible external compasses
hmc5883 -X start
bmp280 start
adc 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
+
1
−
27
View file @
a4830f8d
...
...
@@ -14,14 +14,6 @@ set +e
# NOTE: COMMENT LINES ARE REMOVED BEFORE STORED IN ROMFS.
#
#------------------------------------------------------------------------------
#
# UART mapping on OMNIBUSF4SD:
#
# USART1 /dev/ttyS0 SerialRX
# (USART3 configured as I2C)
# USART4 /dev/ttyS1 TELEM2 (TX=RSSI, RX=PWM out 5)
# USART6 /dev/ttyS2 URT6
#
#
# Set default paramter values.
...
...
@@ -290,24 +282,6 @@ else
#
if [ $AUTOCNF = yes ]
then
# Disable safety switch by default on OmnibusF4SD.
if ver hwcmp OMNIBUS_F4SD
then
param set CBRK_IO_SAFETY 22027
fi
if ver hwcmp OMNIBUS_F4SD
then
param set SYS_FMU_TASK 1
param set SYS_HAS_MAG 0
# use the Q attitude estimator, it works w/o mag or GPS.
param set SYS_MC_EST_GROUP 1
param set ATT_ACC_COMP 0
param set ATT_W_ACC 0.4000
param set ATT_W_GYRO_BIAS 0.0000
fi
param set SYS_AUTOCONFIG 0
fi
...
...
@@ -502,7 +476,7 @@ else
#
# Launch the flow sensor as a background task.
#
if ver hwcmp PX4_FMU_V4 AIRMIND_MINDPX_V2
OMNIBUS_F4SD
if ver hwcmp PX4_FMU_V4 AIRMIND_MINDPX_V2
then
px4flow start &
fi
...
...
This diff is collapsed.
Click to expand it.
boards/omnibus/f4sd/init/rc.board
0 → 100644
+
49
−
0
View file @
a4830f8d
#!nsh
#
# Omnibus F4SD specific board init
#
#------------------------------------------------------------------------------
#
# UART mapping on OMNIBUSF4SD:
#
# USART1 /dev/ttyS0 SerialRX
# (USART3 configured as I2C)
# USART4 /dev/ttyS1 TELEM2 (TX=RSSI, RX=PWM out 5)
# USART6 /dev/ttyS2 URT6
#
#------------------------------------------------------------------------------
#
if [ $AUTOCNF = yes ]
then
# Disable safety switch by default
param set CBRK_IO_SAFETY 22027
# use the Q attitude estimator, it works w/o mag or GPS.
param set SYS_MC_EST_GROUP 1
param set ATT_ACC_COMP 0
param set ATT_W_ACC 0.4000
param set ATT_W_GYRO_BIAS 0.0000
param set SYS_HAS_MAG 0
param set SYS_FMU_TASK 1
fi
set MIXER_AUX none
if ! mpu6000 -R 12 -s start
then
# some boards such as the Hobbywing XRotor F4 G2 use the ICM-20602
mpu6000 -R 12 -T 20602 -s start
fi
# Possible external compasses
hmc5883 -X start
bmp280 start
adc 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