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
b6bab1d9
Commit
b6bab1d9
authored
13 years ago
by
Andrew Tridgell
Committed by
Pat Hickey
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
purple: adc test not useful if no ADC
parent
6c856dde
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ArduPlane/test.pde
+7
-0
7 additions, 0 deletions
ArduPlane/test.pde
with
7 additions
and
0 deletions
ArduPlane/test.pde
+
7
−
0
View file @
b6bab1d9
...
...
@@ -9,7 +9,9 @@ static int8_t test_radio(uint8_t argc, const Menu::arg *argv);
static
int8_t
test_passthru
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
static
int8_t
test_failsafe
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
static
int8_t
test_gps
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
#if CONFIG_ADC == ENABLED
static
int8_t
test_adc
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
#endif
static
int8_t
test_imu
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
static
int8_t
test_gyro
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
static
int8_t
test_battery
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
...
...
@@ -45,7 +47,9 @@ static const struct Menu::command test_menu_commands[] PROGMEM = {
// Tests below here are for hardware sensors only present
// when real sensors are attached or they are emulated
#if HIL_MODE == HIL_MODE_DISABLED
#if CONFIG_ADC == ENABLED
{
"adc"
,
test_adc
},
#endif
{
"gps"
,
test_gps
},
{
"rawgps"
,
test_rawgps
},
{
"imu"
,
test_imu
},
...
...
@@ -437,6 +441,8 @@ test_dipswitches(uint8_t argc, const Menu::arg *argv)
// tests in this section are for real sensors or sensors that have been simulated
#if HIL_MODE == HIL_MODE_DISABLED || HIL_MODE == HIL_MODE_SENSORS
#if CONFIG_ADC == ENABLED
static
int8_t
test_adc
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
)
{
...
...
@@ -457,6 +463,7 @@ test_adc(uint8_t argc, const Menu::arg *argv)
}
}
}
#endif // CONFIG_ADC
static
int8_t
test_gps
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
)
...
...
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