CRINSA-team2025 V1
Documentation du Club Robot INSA Rennes 2025
Chargement...
Recherche...
Aucune correspondance
Elevator.h
1
2//
3// Created by Romain Pouvreau on 08/03/2026.
4//
5
6#ifndef ELEVATOR_H
7#define ELEVATOR_H
8#include "DifferentialController.h"
9
11{
12public:
13 virtual ~AbstractAbsoluteEncoder()= default;
14
22 virtual float getAngle() = 0;
23
24
28
29 virtual void init() = 0;
30};
31
32
34{
35public:
36 Elevator(AbstractMotor& motor, AbstractAbsoluteEncoder& encoder): m_motor(motor), m_encoder(encoder){}
37
43 void setAngle(float angle) {m_angle = angle;};
44
48 void task(void *pvParameters);
49
50
58 void setPID(PID& pid){m_pid = &pid;}
59
60
61protected:
62 AbstractMotor& m_motor;
63 AbstractAbsoluteEncoder& m_encoder;
64
65 float m_angle;
66
67 PID* m_pid;
68};
69
70
71#endif //ELEVATOR_H
Definition Elevator.h:11
virtual float getAngle()=0
Calcul de la position angulaire.
virtual void init()=0
Initialisation de l'encodeur.
float m_angle
Definition Elevator.h:65
void setPID(PID &pid)
Charge l'asservissement.
Definition Elevator.h:58
void setAngle(float angle)
Definition Elevator.h:43
void task(void *pvParameters)
Calcul l'asservissement.
Classe d'asservissement.
Definition PID.h:13
Namespace gérant l'asservissement en position de l'ascenseur.