From 2c122c369a850c02442bead0b620433fe8cd2a32 Mon Sep 17 00:00:00 2001 From: woozydragon Date: Tue, 24 Oct 2023 20:56:47 -0400 Subject: [PATCH] Fixed syntax error --- .../firmware/teensy_main/lib/lunabot_drivers/robot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp b/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp index aa88a9fc..3e34a624 100644 --- a/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp +++ b/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp @@ -79,9 +79,9 @@ void cb(int8_t left, int8_t right) { namespace uwb { void update(float &d0, float &d1, float &d2) { - d0 = UWBBus::read_uwb(0); - d1 = UWBBus::read_uwb(1); - d2 = UWBBus::read_uwb(2); + d0 = UWBBus::read_uwb[0]; + d1 = UWBBus::read_uwb[1]; + d2 = UWBBus::read_uwb[2]; } } // namespace uwb