Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
e6af7dad
Commit
e6af7dad
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Plane: switched to L3G4200D driver for Linux
parent
28b4ae1c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ArduPlane/ArduPlane.pde
+2
-0
2 additions, 0 deletions
ArduPlane/ArduPlane.pde
ArduPlane/config.h
+1
-1
1 addition, 1 deletion
ArduPlane/config.h
ArduPlane/defines.h
+1
-0
1 addition, 0 deletions
ArduPlane/defines.h
with
4 additions
and
1 deletion
ArduPlane/ArduPlane.pde
+
2
−
0
View file @
e6af7dad
...
@@ -252,6 +252,8 @@ AP_InertialSensor_HIL ins;
...
@@ -252,6 +252,8 @@ AP_InertialSensor_HIL ins;
AP_InertialSensor_Oilpan
ins
(
&
apm1_adc
);
AP_InertialSensor_Oilpan
ins
(
&
apm1_adc
);
#elif CONFIG_INS_TYPE == CONFIG_INS_FLYMAPLE
#elif CONFIG_INS_TYPE == CONFIG_INS_FLYMAPLE
AP_InertialSensor_Flymaple
ins
;
AP_InertialSensor_Flymaple
ins
;
#elif CONFIG_INS_TYPE == CONFIG_INS_L3G4200D
AP_InertialSensor_L3G4200D
ins
;
#else
#else
#error Unrecognised CONFIG_INS_TYPE setting.
#error Unrecognised CONFIG_INS_TYPE setting.
#endif // CONFIG_INS_TYPE
#endif // CONFIG_INS_TYPE
...
...
This diff is collapsed.
Click to expand it.
ArduPlane/config.h
+
1
−
1
View file @
e6af7dad
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
# define BATTERY_VOLT_PIN -1
# define BATTERY_VOLT_PIN -1
# define BATTERY_CURR_PIN -1
# define BATTERY_CURR_PIN -1
# define CONFIG_INS_TYPE CONFIG_INS_
OILPAN
# define CONFIG_INS_TYPE CONFIG_INS_
L3G4200D
# define CONFIG_BARO AP_BARO_BMP085
# define CONFIG_BARO AP_BARO_BMP085
# define CONFIG_COMPASS AP_COMPASS_HMC5843
# define CONFIG_COMPASS AP_COMPASS_HMC5843
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
ArduPlane/defines.h
+
1
−
0
View file @
e6af7dad
...
@@ -243,6 +243,7 @@ enum log_messages {
...
@@ -243,6 +243,7 @@ enum log_messages {
#define CONFIG_INS_HIL 3
#define CONFIG_INS_HIL 3
#define CONFIG_INS_PX4 4
#define CONFIG_INS_PX4 4
#define CONFIG_INS_FLYMAPLE 5
#define CONFIG_INS_FLYMAPLE 5
#define CONFIG_INS_L3G4200D 6
// barometer driver types
// barometer driver types
#define AP_BARO_BMP085 1
#define AP_BARO_BMP085 1
...
...
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