rome2_p6 imported

Dependencies:   mbed

Committer:
Appalco
Date:
Fri May 18 13:54:25 2018 +0000
Revision:
5:957580f33e52
Parent:
0:351a2fb21235
fixed tolerance and wayponts

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Appalco 0:351a2fb21235 1 /*
Appalco 0:351a2fb21235 2 * Task.h
Appalco 0:351a2fb21235 3 * Copyright (c) 2018, ZHAW
Appalco 0:351a2fb21235 4 * All rights reserved.
Appalco 0:351a2fb21235 5 */
Appalco 0:351a2fb21235 6
Appalco 0:351a2fb21235 7 #ifndef TASK_H_
Appalco 0:351a2fb21235 8 #define TASK_H_
Appalco 0:351a2fb21235 9
Appalco 0:351a2fb21235 10 #include <cstdlib>
Appalco 0:351a2fb21235 11
Appalco 0:351a2fb21235 12 /**
Appalco 0:351a2fb21235 13 * This is an abstract task class with a method that
Appalco 0:351a2fb21235 14 * is called periodically by a task sequencer.
Appalco 0:351a2fb21235 15 */
Appalco 0:351a2fb21235 16 class Task {
Appalco 0:351a2fb21235 17
Appalco 0:351a2fb21235 18 public:
Appalco 0:351a2fb21235 19
Appalco 0:351a2fb21235 20 static const int FAULT = -1; /**< Task return value. */
Appalco 0:351a2fb21235 21 static const int RUNNING = 0; /**< Task return value. */
Appalco 0:351a2fb21235 22 static const int DONE = 1; /**< Task return value. */
Appalco 0:351a2fb21235 23
Appalco 0:351a2fb21235 24 Task();
Appalco 0:351a2fb21235 25 virtual ~Task();
Appalco 0:351a2fb21235 26 virtual int run(float period);
Appalco 0:351a2fb21235 27 };
Appalco 0:351a2fb21235 28
Appalco 0:351a2fb21235 29 #endif /* TASK_H_ */
Appalco 0:351a2fb21235 30