From b397371efbbd31dbf3847fb655a1e69ae630584f Mon Sep 17 00:00:00 2001 From: jkerpe Date: Wed, 15 Nov 2023 15:47:45 +0100 Subject: [PATCH] Added Missing Components to Test Board --- lib/HALTest/Board.h | 68 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 63 insertions(+), 5 deletions(-) diff --git a/lib/HALTest/Board.h b/lib/HALTest/Board.h index 238a3e56..50ad18af 100644 --- a/lib/HALTest/Board.h +++ b/lib/HALTest/Board.h @@ -27,7 +27,7 @@ /** * @brief The robot board realization for testing purposes. * @author Andreas Merkle - * + * * @addtogroup HALSim * * @{ @@ -45,6 +45,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -52,6 +55,7 @@ #include #include #include +#include #include /****************************************************************************** @@ -95,6 +99,36 @@ class Board : public IBoard return m_buttonA; } + /** + * Get button B driver. + * + * @return Button B driver. + */ + IButton& getButtonB() final + { + return m_buttonB; + } + + /** + * Get button C driver. + * + * @return Button C driver. + */ + IButton& getButtonC() final + { + return m_buttonC; + } + + /** + * Get buzzer driver. + * + * @return Buzzer driver. + */ + IBuzzer& getBuzzer() final + { + return m_buzzer; + } + /** * Get LCD driver. * @@ -165,9 +199,19 @@ class Board : public IBoard return m_ledGreen; } + /** + * Get proximity sensors driver. + * + * @return Proximity sensors driver + */ + IProximitySensors& getProximitySensors() final + { + return m_proximitySensors; + } + /** * Get IMU (=Inertial Measurement Unit) driver. - * + * * @return IMU driver */ IIMU& getIMU() @@ -196,12 +240,19 @@ class Board : public IBoard } protected: - private: - /** Button A driver */ ButtonA m_buttonA; + /** Button B driver */ + ButtonB m_buttonB; + + /** Button C driver */ + ButtonC m_buttonC; + + /** Buzzer driver */ + Buzzer m_buzzer; + /** Display driver */ Display m_display; @@ -223,15 +274,21 @@ class Board : public IBoard /** Red LED driver */ LedGreen m_ledGreen; + /** Proximity sensors */ + ProximitySensors m_proximitySensors; + /** IMU driver */ IMU m_imu; - + /** * Constructs the concrete board. */ Board() : IBoard(), m_buttonA(), + m_buttonB(), + m_buttonC(), + m_buzzer(), m_display(), m_encoders(), m_lineSensors(), @@ -239,6 +296,7 @@ class Board : public IBoard m_ledRed(), m_ledYellow(), m_ledGreen(), + m_proximitySensors(), m_imu() { }