Skip to content

Commit

Permalink
src: lib: adc: Change to use max sample rate
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin authored and patrickelectric committed Oct 23, 2023
1 parent ef10c12 commit b83153f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ impl Navigator {
self.adc
.set_full_scale_range(ads1x1x::FullScaleRange::Within4_096V)
.unwrap();
self.adc
.set_data_rate(ads1x1x::DataRate16Bit::Sps860)
.unwrap();

self.pwm.reset_internal_driver_state();
self.pwm.use_external_clock().unwrap();
Expand Down

0 comments on commit b83153f

Please sign in to comment.