From b77ce2ce56b72927856641fd5db37e6f186ffbca Mon Sep 17 00:00:00 2001 From: Raul Victor Trombin Date: Mon, 23 Oct 2023 10:50:00 -0300 Subject: [PATCH] src: lib: adc: Change to use max sample rate --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e279c8e629..4e14825ddd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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();