Robot Principal 26
Documentation du Club Robot INSA Rennes 2026
Chargement...
Recherche...
Aucune correspondance
Wheeledbase/lib/motors/include/DCMotor.h
Aller à la documentation de ce fichier.
1//
2// Created by Romain Pouvreau on 15/04/2026.
3//
9
10#ifndef MOTORS_DCMOTOR_H
11#define MOTORS_DCMOTOR_H
12
13#include "AbstractMotors.h"
14
21class DCMotor : public AbstractMotor
22{
23public:
28 explicit DCMotor(float maxVelocity = 1.0f);
29
34 [[nodiscard]] float getMaxVelocity() const override;
35
40 void setMaxVelocity(float maxVelocity);
41
42private:
43 float m_maxVelocity;
44};
45
46
47#endif //MOTORS_DCMOTOR_H
Interface abstraite des moteurs.
Definition motors/include/AbstractMotors.h:14
Implémentation concrète d'un moteur DC standard.
Definition motors/include/DCMotor.h:22
DCMotor(float maxVelocity=1.0f)
Construit un moteur DC.
void setMaxVelocity(float maxVelocity)
Modifie la vitesse maximale (limitation logicielle).
float getMaxVelocity() const override
Retourne la vitesse maximale configurée.