EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MySafetyProperties.hpp
Go to the documentation of this file.
1 #ifndef MYSAFETYPROPERTIES_HPP_
2 #define MYSAFETYPROPERTIES_HPP_
3 
5 #include <eeros/hal/HAL.hpp>
6 #include "MyControlSystem.hpp"
7 
8  // Name all levels
9  enum {
10  off = 0,
12  systemOn = 10,
15  powerOn = 20,
16  moving = 30
17  };
18 
19  // Define all possible events
20  enum {
21  doSystemOn = 100,
22  doSystemOff = 101,
23  startControl = 102,
24  stopControl = 103,
27  startMoving = 106,
28  stopMoving = 107,
29  doEmergency = 108,
31  };
32 
34 
35 public:
37  virtual ~MySafetyProperties();
38 
39 protected:
40  // critical outputs
42 
43  // critical inputs
46 
48 };
49 
50 #endif // MYSAFETYPROPERTIES_HPP_
Definition: MySafetyProperties.hpp:24
Definition: MySafetyProperties.hpp:25
Definition: MySafetyProperties.hpp:10
Definition: MySafetyProperties.hpp:22
Definition: MySafetyProperties.hpp:27
eeros::hal::PeripheralOutput< bool > * enable
Definition: MySafetyProperties.hpp:41
MySafetyProperties(MyControlSystem &controlSys)
Definition: MySafetyProperties.cpp:17
Definition: MySafetyProperties.hpp:33
Definition: MySafetyProperties.hpp:11
Definition: MySafetyProperties.hpp:15
Definition: MySafetyProperties.hpp:28
Definition: MySafetyProperties.hpp:12
virtual ~MySafetyProperties()
Definition: MySafetyProperties.cpp:93
Definition: MySafetyProperties.hpp:30
Definition: MySafetyProperties.hpp:16
Definition: MySafetyProperties.hpp:21
Definition: MySafetyProperties.hpp:26
Definition: MyControlSystem.hpp:12
Definition: MySafetyProperties.hpp:13
Definition: MySafetyProperties.hpp:14
Definition: MySafetyProperties.hpp:29
Definition: SafetyProperties.hpp:15
MyControlSystem & controlSys
Definition: MySafetyProperties.hpp:47
Definition: MySafetyProperties.hpp:23
eeros::hal::PeripheralInput< bool > * emergency
Definition: MySafetyProperties.hpp:44
eeros::hal::PeripheralInput< double > * q
Definition: MySafetyProperties.hpp:45