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
fd31091f
Commit
fd31091f
authored
6 years ago
by
David Sidrane
Committed by
Daniel Agar
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bmm150:Restored lost internal i2C
parent
005db51d
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
boards/px4/fmu-v4/init/rc.board_sensors
+1
-1
1 addition, 1 deletion
boards/px4/fmu-v4/init/rc.board_sensors
src/drivers/magnetometer/bmm150/bmm150.cpp
+4
-0
4 additions, 0 deletions
src/drivers/magnetometer/bmm150/bmm150.cpp
with
5 additions
and
1 deletion
boards/px4/fmu-v4/init/rc.board_sensors
+
1
−
1
View file @
fd31091f
...
...
@@ -19,7 +19,7 @@ ist8310 start
bmp280
-I
start
# expansion i2c used for BMM150 rotated by 90deg
bmm150
-R
2 start
bmm150
-X
-R
2 start
# For Teal One airframe
if
param compare SYS_AUTOSTART 4250
...
...
This diff is collapsed.
Click to expand it.
src/drivers/magnetometer/bmm150/bmm150.cpp
+
4
−
0
View file @
fd31091f
...
...
@@ -86,8 +86,12 @@ void start(bool external_bus, enum Rotation rotation)
#endif
}
else
{
#if defined(PX4_I2C_BUS_ONBOARD)
*
g_dev_ptr
=
new
BMM150
(
PX4_I2C_BUS_ONBOARD
,
path
,
rotation
);
#else
PX4_ERR
(
"Internal I2C not available"
);
exit
(
0
);
#endif
}
if
(
*
g_dev_ptr
==
nullptr
)
{
...
...
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