RoboidControl
Loading...
Searching...
No Matches
d:/PlatformIO/RoboidControl/Quadcopter.h
Go to the documentation of this file.
1#pragma once
2
4#include "Propulsion.h"
5#include "Thing.h"
6
7namespace Passer {
8namespace RoboidControl {
9
12class Quadcopter : public Propulsion {
13public:
15 Quadcopter();
16
17 virtual void SetTwistSpeed(float forward, float yaw = 0.0F) override;
18 virtual void SetTwistSpeed(Vector2 linear, float yaw = 0.0F) override;
19 virtual void SetTwistSpeed(Vector3 linear, float yaw = 0.0F,
20 float pitch = 0.0F, float roll = 0.0F) override;
21
22 Vector3 GetTargetVelocity();
23 float GetYawSpeed();
24 float GetPitchSpeed();
25 float GetRollSpeed();
26
27protected:
28 Vector3 velocity = Vector3::zero;
29 float pitchSpeed = 0.0F;
30 float yawSpeed = 0.0F;
31 float rollSpeed = 0.0F;
32};
33
34} // namespace RoboidControl
35} // namespace Passer
36using namespace Passer::RoboidControl;
The Propulsion module for a Roboid is used to move the Roboid in space.
Definition Propulsion.h:18
Support for Quadcopter as a propulsion method.
Definition Quadcopter.h:12
float GetPitchSpeed()
Definition Quadcopter.cpp:29
float yawSpeed
Definition Quadcopter.h:30
virtual void SetTwistSpeed(float forward, float yaw=0.0F) override
Get the Placement of a specific Motor.
Definition Quadcopter.cpp:5
float GetYawSpeed()
Definition Quadcopter.cpp:33
virtual void SetTwistSpeed(Vector3 linear, float yaw=0.0F, float pitch=0.0F, float roll=0.0F) override
Set the target 3D linear and 3D rotation speed of a (flying) Roboid.
float rollSpeed
Definition Quadcopter.h:31
Quadcopter()
Default constuctor.
Definition Quadcopter.cpp:3
Vector3 GetTargetVelocity()
Definition Quadcopter.cpp:25
float pitchSpeed
Definition Quadcopter.h:29
float GetRollSpeed()
Definition Quadcopter.cpp:36
Vector3 velocity
Definition Quadcopter.h:28
Definition Accelerometer.h:7
Definition AbsoluteEncoder.h:5