Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ardupilot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
SASC
ardupilot
Commits
73122adb
Commit
73122adb
authored
8 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AP_BoardConfig: removed unused startup functions for Pixracer
parent
3d5c57c5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/AP_BoardConfig/AP_BoardConfig.h
+0
-1
0 additions, 1 deletion
libraries/AP_BoardConfig/AP_BoardConfig.h
libraries/AP_BoardConfig/px4_drivers.cpp
+2
-25
2 additions, 25 deletions
libraries/AP_BoardConfig/px4_drivers.cpp
with
2 additions
and
26 deletions
libraries/AP_BoardConfig/AP_BoardConfig.h
+
0
−
1
View file @
73122adb
...
...
@@ -109,7 +109,6 @@ private:
void
px4_start_common_sensors
(
void
);
void
px4_start_fmuv1_sensors
(
void
);
void
px4_start_fmuv2_sensors
(
void
);
void
px4_start_fmuv4_sensors
(
void
);
void
px4_start_optional_sensors
(
void
);
#endif
...
...
This diff is collapsed.
Click to expand it.
libraries/AP_BoardConfig/px4_drivers.cpp
+
2
−
25
View file @
73122adb
...
...
@@ -407,35 +407,12 @@ void AP_BoardConfig::px4_start_fmuv1_sensors(void)
#endif // CONFIG_ARCH_BOARD_PX4FMU_V1
}
/*
setup sensors for FMUv4
*/
void
AP_BoardConfig
::
px4_start_fmuv4_sensors
(
void
)
{
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
printf
(
"Starting FMUv4 sensors
\n
"
);
if
(
px4_start_driver
(
hmc5883_main
,
"hmc5883"
,
"-C -T -S -R 2 start"
))
{
printf
(
"Have SPI hmc5883
\n
"
);
}
else
{
printf
(
"No SPI hmc5883
\n
"
);
}
if
(
px4_start_driver
(
mpu6000_main
,
"mpu6000"
,
"-R 2 -T 20608 start"
))
{
printf
(
"Found ICM-20608 internal
\n
"
);
}
if
(
px4_start_driver
(
mpu9250_main
,
"mpu9250"
,
"-R 2 start"
))
{
printf
(
"Found mpu9250 internal
\n
"
);
}
px4
.
board_type
.
set_and_notify
(
PX4_BOARD_PIXRACER
);
#endif // CONFIG_ARCH_BOARD_PX4FMU_V4
}
/*
setup common sensors
*/
void
AP_BoardConfig
::
px4_start_common_sensors
(
void
)
{
#ifndef CONFIG_ARCH_BOARD_PX4FMU_V4
if
(
px4_start_driver
(
ms5611_main
,
"ms5611"
,
"start"
))
{
printf
(
"ms5611 started OK
\n
"
);
}
else
{
...
...
@@ -446,6 +423,7 @@ void AP_BoardConfig::px4_start_common_sensors(void)
}
else
{
printf
(
"No external hmc5883
\n
"
);
}
#endif
}
...
...
@@ -644,7 +622,6 @@ void AP_BoardConfig::px4_setup_drivers(void)
default:
px4_start_fmuv1_sensors
();
px4_start_fmuv2_sensors
();
px4_start_fmuv4_sensors
();
break
;
}
px4_start_optional_sensors
();
...
...
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