Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
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
Ardupilot
Commits
2db5a2b5
Commit
2db5a2b5
authored
13 years ago
by
Andrew Tridgell
Committed by
Pat Hickey
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
purple: add the remaining hw defines for purple hardware
parent
252e8580
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
ArduPlane/config.h
+12
-4
12 additions, 4 deletions
ArduPlane/config.h
ArduPlane/system.pde
+6
-1
6 additions, 1 deletion
ArduPlane/system.pde
with
18 additions
and
5 deletions
ArduPlane/config.h
+
12
−
4
View file @
2db5a2b5
...
@@ -48,10 +48,18 @@
...
@@ -48,10 +48,18 @@
#ifndef CONFIG_APM_HARDWARE
#ifndef CONFIG_APM_HARDWARE
# define CONFIG_APM_HARDWARE APM_HARDWARE_APM1
# define CONFIG_APM_HARDWARE APM_HARDWARE_APM1
#else
#endif
# if CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE
# define CONFIG_IMU_TYPE CONFIG_IMU_MPU6000
//////////////////////////////////////////////////////////////////////////////
# endif
// PURPLE HARDWARE DEFAULTS
//
#if CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE
# define CONFIG_IMU_TYPE CONFIG_IMU_MPU6000
# define CONFIG_PUSHBUTTON DISABLED
# define CONFIG_RELAY DISABLED
# define MAG_ORIENTATION ROTATION_NONE
# define CONFIG_SONAR_SOURCE SONAR_SOURCE_ANALOG_PIN
#endif
#endif
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
ArduPlane/system.pde
+
6
−
1
View file @
2db5a2b5
...
@@ -197,10 +197,15 @@ static void init_ardupilot()
...
@@ -197,10 +197,15 @@ static void init_ardupilot()
pinMode
(
C_LED_PIN
,
OUTPUT
);
// GPS status LED
pinMode
(
C_LED_PIN
,
OUTPUT
);
// GPS status LED
pinMode
(
A_LED_PIN
,
OUTPUT
);
// GPS status LED
pinMode
(
A_LED_PIN
,
OUTPUT
);
// GPS status LED
pinMode
(
B_LED_PIN
,
OUTPUT
);
// GPS status LED
pinMode
(
B_LED_PIN
,
OUTPUT
);
// GPS status LED
#if SLIDE_SWITCH_PIN > 0
pinMode
(
SLIDE_SWITCH_PIN
,
INPUT
);
// To enter interactive mode
pinMode
(
SLIDE_SWITCH_PIN
,
INPUT
);
// To enter interactive mode
#endif
#if CONFIG_PUSHBUTTON == ENABLED
pinMode
(
PUSHBUTTON_PIN
,
INPUT
);
// unused
pinMode
(
PUSHBUTTON_PIN
,
INPUT
);
// unused
#endif
#if CONFIG_RELAY == ENABLED
DDRL
|=
B00000100
;
// Set Port L, pin 2 to output for the relay
DDRL
|=
B00000100
;
// Set Port L, pin 2 to output for the relay
#endif
// If the switch is in 'menu' mode, run the main menu.
// If the switch is in 'menu' mode, run the main menu.
//
//
// Since we can't be sure that the setup or test mode won't leave
// Since we can't be sure that the setup or test mode won't leave
...
...
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