-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Missing Components to Test Board
- Loading branch information
Showing
1 changed file
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief The robot board realization for testing purposes. | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup HALSim | ||
* | ||
* @{ | ||
|
@@ -45,13 +45,17 @@ | |
#include <stdint.h> | ||
#include <IBoard.h> | ||
#include <ButtonA.h> | ||
#include <ButtonB.h> | ||
#include <ButtonC.h> | ||
#include <Buzzer.h> | ||
#include <Display.h> | ||
#include <Encoders.h> | ||
#include <LineSensors.h> | ||
#include <Motors.h> | ||
#include <LedRed.h> | ||
#include <LedYellow.h> | ||
#include <LedGreen.h> | ||
#include <ProximitySensors.h> | ||
#include <IMU.h> | ||
|
||
/****************************************************************************** | ||
|
@@ -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,22 +274,29 @@ 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(), | ||
m_motors(), | ||
m_ledRed(), | ||
m_ledYellow(), | ||
m_ledGreen(), | ||
m_proximitySensors(), | ||
m_imu() | ||
{ | ||
} | ||
|