Allan Brignoli
/
Rome2_P6
gugus
Task.h
- Committer:
- Brignall
- Date:
- 2018-05-18
- Revision:
- 0:1a0321f1ffbc
File content as of revision 0:1a0321f1ffbc:
/* * Task.h * Copyright (c) 2018, 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_ */