Skip to content
Snippets Groups Projects
Commit deb370cf authored by odri's avatar odri
Browse files

Add FakePowerboard class to the FakeRobot class

parent f07af785
No related branches found
No related tags found
No related merge requests found
Pipeline #16563 failed
......@@ -65,6 +65,29 @@ class FakeImu {
};
class FakePowerboard {
public:
////////////////////////////////////////////////////////////////////////////////////////////////
///
/// \brief Constructor
///
////////////////////////////////////////////////////////////////////////////////////////////////
FakePowerboard() {}
////////////////////////////////////////////////////////////////////////////////////////////////
///
/// \brief Destructor
///
////////////////////////////////////////////////////////////////////////////////////////////////
~FakePowerboard() {} // Empty destructor
// Fake functions
double GetCurrent() { return 0.0; }
double GetVoltage() { return 0.0; }
double GetEnergy() { return 0.0; }
};
class FakeRobot {
public:
////////////////////////////////////////////////////////////////////////////////////////////////
......@@ -72,7 +95,7 @@ class FakeRobot {
/// \brief Constructor
///
////////////////////////////////////////////////////////////////////////////////////////////////
FakeRobot() {joints = new FakeJoints(); imu = new FakeImu();}
FakeRobot() {joints = new FakeJoints(); imu = new FakeImu(); powerboard = new FakePowerboard();}
////////////////////////////////////////////////////////////////////////////////////////////////
///
......@@ -89,6 +112,7 @@ class FakeRobot {
FakeJoints* joints = nullptr;
FakeImu* imu = nullptr;
FakePowerboard* powerboard = nullptr;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment