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
e4afce8b
Commit
e4afce8b
authored
8 years ago
by
Phillip Kocmoud
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add the 20602 start command for the AUAV x2.1 to the ROMFS rc.sensors file
parent
36e2bc8a
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/rc.sensors
+5
-0
5 additions, 0 deletions
ROMFS/px4fmu_common/init.d/rc.sensors
src/drivers/boards/auav-x21/auav_spi.c
+5
-5
5 additions, 5 deletions
src/drivers/boards/auav-x21/auav_spi.c
with
10 additions
and
5 deletions
ROMFS/px4fmu_common/init.d/rc.sensors
+
5
−
0
View file @
e4afce8b
...
...
@@ -73,6 +73,11 @@ then
then
fi
# Internal SPI bus ICM-20602-G is rotated 90 deg yaw
if mpu6000 -R 2 -T 20602 start
then
fi
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
if mpu6000 -R 2 -T 20608 start
then
...
...
This diff is collapsed.
Click to expand it.
src/drivers/boards/auav-x21/auav_spi.c
+
5
−
5
View file @
e4afce8b
...
...
@@ -94,13 +94,13 @@ __EXPORT void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
switch
(
devid
)
{
/* intended fallthrough */
/* intended fallthrough */
case
PX4_SPIDEV_ICM_20602
:
/* intended fallthrough */
case
PX4_SPIDEV_ICM_20608
:
/* Making sure the other peripherals are not selected */
px4_arch_gpiowrite
(
GPIO_SPI_CS_ICM_2060X
,
!
selected
);
/* intended fallthrough */
case
PX4_SPIDEV_ICM_20608
:
/* Making sure the other peripherals are not selected */
px4_arch_gpiowrite
(
GPIO_SPI_CS_ICM_2060X
,
!
selected
);
px4_arch_gpiowrite
(
GPIO_SPI_CS_BARO
,
1
);
px4_arch_gpiowrite
(
GPIO_SPI_CS_MPU
,
1
);
break
;
...
...
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