Marco Oehler
/
Lab3
ROME2 Lab3
Task.h
- Committer:
- oehlemar
- Date:
- 2020-03-25
- Revision:
- 2:fc9e2aebf9d5
- Parent:
- 0:6a4d3264c067
File content as of revision 2:fc9e2aebf9d5:
/* * Task.h * Copyright (c) 2020, ZHAW * All rights reserved. */ #ifndef TASK_H_ #define TASK_H_ #include <cstdlib> /** * This is an abstract task class with a method that * is called periodically by a task sequencer. */ class Task { public: static const int FAULT = -1; /**< Task return value. */ static const int RUNNING = 0; /**< Task return value. */ static const int DONE = 1; /**< Task return value. */ Task(); virtual ~Task(); virtual int run(float period); }; #endif /* TASK_H_ */