Added component

This commit is contained in:
Pascal Serrarens 2023-11-21 14:38:45 +01:00
parent c2478ce057
commit 2ff984b5bc
2 changed files with 44 additions and 48 deletions

View File

@ -1,12 +1,8 @@
#include "ControlledMotor.h"
#include "Propulsion.h" #include "Propulsion.h"
#include "ControlledMotor.h"
#include "FloatSingle.h" #include "FloatSingle.h"
extern "C" {
#include "debug.h"
}
Propulsion::Propulsion() { Propulsion::Propulsion() {
this->placement = nullptr; this->placement = nullptr;
this->motorCount = 0; this->motorCount = 0;
@ -34,7 +30,6 @@ void Propulsion::AddMotors(Placement* things, unsigned int thingCount) {
if (thing->isMotor) if (thing->isMotor)
this->placement[motorIx++] = things[thingIx]; this->placement[motorIx++] = things[thingIx];
} }
} }
void Propulsion::AddQuadcopter(Quadcopter* quadcopter) { void Propulsion::AddQuadcopter(Quadcopter* quadcopter) {

1
component.mk Normal file
View File

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