Merge branch 'main' into ControlledMotor

This commit is contained in:
Pascal Serrarens 2024-01-03 12:56:42 +01:00
commit a4bb2cf55a
15 changed files with 27 additions and 27 deletions

View File

@ -2,12 +2,12 @@ cmake_minimum_required(VERSION 3.13) # CMake version check
if(ESP_PLATFORM)
set(sourcedirs
.
VectorAlgebra/src
VectorAlgebra
)
set(includedirs
.
VectorAlgebra/include
VectorAlgebra
)
idf_component_register(
@ -37,7 +37,7 @@ FetchContent_MakeAvailable(googletest)
include_directories(
.
VectorAlgebra/include
VectorAlgebra
)
add_library(RoboidControl STATIC

View File

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

View File

@ -1,4 +1,5 @@
#include "Motor.h"
#include <time.h>
Motor::Motor() {

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/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/Polar.h"
#include "VectorAlgebra/Quaternion.h"
namespace Passer {
namespace RoboidControl {

View File

@ -1,8 +1,8 @@
#pragma once
#include "Thing.h"
#include "Vector2.h"
#include "Vector3.h"
#include "VectorAlgebra/Vector2.h"
#include "VectorAlgebra/Vector3.h"
namespace Passer {
namespace RoboidControl {

View File

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

View File

@ -2,9 +2,9 @@
#include "Motor.h"
#include "Placement.h"
#include "Polar.h"
#include "Quaternion.h"
#include "Vector2.h"
#include "VectorAlgebra/Polar.h"
#include "VectorAlgebra/Quaternion.h"
#include "VectorAlgebra/Vector2.h"
namespace Passer {
namespace RoboidControl {

View File

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

View File

@ -1,7 +1,5 @@
#include <Switch.h>
#include "Switch.h"
Switch::Switch() {}
bool Switch::IsOn() {
return false;
}
bool Switch::IsOn() { return false; }

View File

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

@ -1 +1 @@
Subproject commit 5b2d515cccd8d9b66ca85391a1a45a5bc2052fa7
Subproject commit 5a03d296e5180236f12797f925a3e3711b5bb2d1

View File

@ -1 +1 @@
COMPONENT_ADD_INCLUDEDIRS = ./VectorAlgebra/include
COMPONENT_ADD_INCLUDEDIRS = ./VectorAlgebra

View File

@ -5,7 +5,7 @@
"srcDir": ".",
"flags": [
"-I .",
"-I ./VectorAlgebra/include"
"-I ./VectorAlgebra"
]
}
}