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
04ec5693
Commit
04ec5693
authored
13 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
ADC: fixed HIL build
parent
658d1d2b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/AP_ADC/AP_ADC_HIL.cpp
+5
-0
5 additions, 0 deletions
libraries/AP_ADC/AP_ADC_HIL.cpp
libraries/AP_ADC/AP_ADC_HIL.h
+1
-0
1 addition, 0 deletions
libraries/AP_ADC/AP_ADC_HIL.h
with
6 additions
and
0 deletions
libraries/AP_ADC/AP_ADC_HIL.cpp
+
5
−
0
View file @
04ec5693
...
@@ -49,6 +49,11 @@ float AP_ADC_HIL::Ch(unsigned char ch_num)
...
@@ -49,6 +49,11 @@ float AP_ADC_HIL::Ch(unsigned char ch_num)
return
adcValue
[
ch_num
];
return
adcValue
[
ch_num
];
}
}
// enable a channel
void
AP_ADC_HIL
::
enable_channel
(
uint8_t
ch
)
{
}
// Read 6 channel values
// Read 6 channel values
uint32_t
AP_ADC_HIL
::
Ch6
(
const
uint8_t
*
channel_numbers
,
uint16_t
*
result
)
uint32_t
AP_ADC_HIL
::
Ch6
(
const
uint8_t
*
channel_numbers
,
uint16_t
*
result
)
{
{
...
...
This diff is collapsed.
Click to expand it.
libraries/AP_ADC/AP_ADC_HIL.h
+
1
−
0
View file @
04ec5693
...
@@ -37,6 +37,7 @@ class AP_ADC_HIL : public AP_ADC
...
@@ -37,6 +37,7 @@ class AP_ADC_HIL : public AP_ADC
///
///
// Read 6 sensors at once
// Read 6 sensors at once
uint32_t
Ch6
(
const
uint8_t
*
channel_numbers
,
uint16_t
*
result
);
uint32_t
Ch6
(
const
uint8_t
*
channel_numbers
,
uint16_t
*
result
);
void
enable_channel
(
uint8_t
ch
);
///
///
// Set the adc raw values given the current rotations rates,
// Set the adc raw values given the current rotations rates,
...
...
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