rotor.h 667 Bytes
Newer Older
andz's avatar
andz committed
1
2
3
4
5
6
///
/// @file       rotor.h
/// @copyright  Christian Obersteiner, Andreas Müller - CC-BY-SA 4.0
///
/// @brief  Contains all kind of rotor functions
///
chris007's avatar
chris007 committed
7
8
9
10
11

#ifndef ROTOR_H
#define ROTOR_H

#include "settings.h"
12
#include "motor.h"
markus's avatar
markus committed
13
#include "brake.h"
chris007's avatar
chris007 committed
14

Markus's avatar
Markus committed
15
class Rotor
chris007's avatar
chris007 committed
16
17
{
public:
Markus's avatar
Markus committed
18
    Rotor();
andz's avatar
andz committed
19
    void doRotor();
20
21
22

    double getAzimuth() const;
    double getElevation() const;
andz's avatar
andz committed
23

Markus Mueller's avatar
Markus Mueller committed
24
25
    void stopAzimuth();
    void stopElevation();
markus's avatar
markus committed
26
27
    void stopAndBreakAzimuth();
    void stopAndBreakElevation();
Markus Mueller's avatar
Markus Mueller committed
28

29
30
    Motor::motorError setAzimuth(double);
    Motor::motorError setElevation(double);
chris007's avatar
chris007 committed
31
private:
32
33
    Motor *azimuth_;
    Motor *elevation_;
markus's avatar
markus committed
34
    Brake *brake_;
chris007's avatar
chris007 committed
35
36
};

Markus Mueller's avatar
Markus Mueller committed
37
#endif //ROTOR_H