Skip to content
Snippets Groups Projects
Commit 04ec5693 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

ADC: fixed HIL build

parent 658d1d2b
No related branches found
No related tags found
No related merge requests found
...@@ -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)
{ {
......
...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment