Arduino IDE compatibility

This commit is contained in:
Pascal Serrarens 2024-01-03 11:29:11 +01:00
parent c66a3215e1
commit 502121ba3b
7 changed files with 13 additions and 12 deletions

View File

@ -1,5 +1,5 @@
#include "DifferentialDrive.h"
#include "FloatSingle.h"
#include "VectorAlgebra/include/FloatSingle.h"
#include <math.h>

11
Motor.h
View File

@ -1,15 +1,16 @@
#pragma once
#include <time.h>
#include "Thing.h"
#include <time.h>
namespace Passer {
namespace RoboidControl {
/// @brief A Motor is a Thing which can move parts of the Roboid
/// @note Currently only rotational motors are supported
class Motor : public Thing {
public:
public:
/// @brief Default constructor for the Motor
Motor();
@ -27,10 +28,10 @@ class Motor : public Thing {
/// forward)
virtual float GetSpeed();
protected:
protected:
float currentTargetSpeed = 0;
};
} // namespace RoboidControl
} // namespace Passer
} // namespace RoboidControl
} // namespace Passer
using namespace Passer::RoboidControl;

View File

@ -1,8 +1,8 @@
#include "Perception.h"
#include "Angle.h"
#include "DistanceSensor.h"
#include "NetworkSync.h"
#include "Switch.h"
#include "VectorAlgebra/include/Angle.h"
#include <math.h>

View File

@ -1,10 +1,10 @@
#pragma once
#include "Placement.h"
#include "Polar.h"
#include "Quaternion.h"
#include "Sensor.h"
#include "TrackedObject.h"
#include "VectorAlgebra/include/Polar.h"
#include "VectorAlgebra/include/Quaternion.h"
namespace Passer {
namespace RoboidControl {

View File

@ -1,7 +1,7 @@
#include "Propulsion.h"
#include "Roboid.h"
#include "FloatSingle.h"
#include "VectorAlgebra/include/FloatSingle.h"
Propulsion::Propulsion() {
this->placement = nullptr;

View File

@ -2,7 +2,7 @@
#include "Propulsion.h"
#include "Thing.h"
#include "Vector3.h"
#include "VectorAlgebra/include/Vector3.h"
namespace Passer {
namespace RoboidControl {

View File

@ -1,7 +1,7 @@
#pragma once
#include "Polar.h"
#include "Sensor.h"
#include "VectorAlgebra/include/Polar.h"
namespace Passer {
namespace RoboidControl {