Skip to content

Commit

Permalink
fix dronecan msg name
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Mar 14, 2024
1 parent 35821f9 commit c52fe4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_ADC/AP_ADC_ADS1115.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ bool AP_ADC_ADS1115::init()

_gain = ADS1115_PGA_4P096;

// initialize the sample cache to ensure we know if it was populated with valid data
for (size_t i = 0; i < _channels_number; i++) {
_samples[i].data = -1.0f;
}

_dev->register_periodic_callback(100000, FUNCTOR_BIND_MEMBER(&AP_ADC_ADS1115::_update, void));

return true;
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_DroneCAN/dsdl/rb/31000.ADC.uavcan
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
float32[<=10] voltages
6 changes: 0 additions & 6 deletions libraries/AP_DroneCAN/dsdl/rb/31000.uavcan

This file was deleted.

0 comments on commit c52fe4b

Please sign in to comment.