RoboidControl for Arduino
Loading...
Searching...
No Matches
DifferentialDrive.h
Go to the documentation of this file.
1#pragma once
2
3#include "Propulsion.h"
4
5namespace Passer {
6namespace RoboidControl {
7
18 public:
28 DifferentialDrive(Placement leftMotorPlacement,
29 Placement rightMotorPlacement);
30
34 void SetTargetSpeeds(float leftSpeed, float rightSpeed);
35
39 virtual void SetTwistSpeed(float forward, float yaw) override;
46 virtual void SetTwistSpeed(Vector2 linear, float yaw = 0.0F);
55 virtual void SetTwistSpeed(Vector3 linear,
56 float yaw = 0.0F,
57 float pitch = 0.0F,
58 float roll = 0.0F);
59};
60
61} // namespace RoboidControl
62} // namespace Passer
63using namespace Passer::RoboidControl;
A two-wheeled Propulsion method.
Definition DifferentialDrive.h:17
void SetTargetSpeeds(float leftSpeed, float rightSpeed)
Set the target speeds of the motors directly.
Definition DifferentialDrive.cpp:19
virtual void SetTwistSpeed(float forward, float yaw) override
Controls the motors through forward and rotation speeds.
Definition DifferentialDrive.cpp:36
DifferentialDrive()
Default constructor.
Definition DifferentialDrive.cpp:5
A plament is used to specify where a Thing is placed on the Roboid.
Definition Placement.h:38
The Propulsion module for a Roboid is used to move the Roboid in space.
Definition Propulsion.h:16
Definition DRV8833.h:7
Definition DRV8833.h:6
A 2-dimensional vector.
Definition Vector2.h:31
A 3-dimensional vector.
Definition Vector3.h:35