ROME_P5

Dependencies:   mbed

Committer:
Inaueadr
Date:
Fri Apr 27 08:47:34 2018 +0000
Revision:
0:29be10cb0afc
Hallo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Inaueadr 0:29be10cb0afc 1 /*
Inaueadr 0:29be10cb0afc 2 * Task.cpp
Inaueadr 0:29be10cb0afc 3 * Copyright (c) 2018, ZHAW
Inaueadr 0:29be10cb0afc 4 * All rights reserved.
Inaueadr 0:29be10cb0afc 5 */
Inaueadr 0:29be10cb0afc 6
Inaueadr 0:29be10cb0afc 7 #include "Task.h"
Inaueadr 0:29be10cb0afc 8
Inaueadr 0:29be10cb0afc 9 using namespace std;
Inaueadr 0:29be10cb0afc 10
Inaueadr 0:29be10cb0afc 11 /**
Inaueadr 0:29be10cb0afc 12 * Creates an abstract task object.
Inaueadr 0:29be10cb0afc 13 */
Inaueadr 0:29be10cb0afc 14 Task::Task() {}
Inaueadr 0:29be10cb0afc 15
Inaueadr 0:29be10cb0afc 16 /**
Inaueadr 0:29be10cb0afc 17 * Deletes the task object.
Inaueadr 0:29be10cb0afc 18 */
Inaueadr 0:29be10cb0afc 19 Task::~Task() {}
Inaueadr 0:29be10cb0afc 20
Inaueadr 0:29be10cb0afc 21 /**
Inaueadr 0:29be10cb0afc 22 * This method is called periodically by a task sequencer.
Inaueadr 0:29be10cb0afc 23 * It contains the code this task has to work on.
Inaueadr 0:29be10cb0afc 24 * @param period the period of the task sequencer, given in [s].
Inaueadr 0:29be10cb0afc 25 * @return the status of this task, i.e. RUNNING or DONE.
Inaueadr 0:29be10cb0afc 26 */
Inaueadr 0:29be10cb0afc 27 int Task::run(float period) {
Inaueadr 0:29be10cb0afc 28
Inaueadr 0:29be10cb0afc 29 return DONE;
Inaueadr 0:29be10cb0afc 30 }
Inaueadr 0:29be10cb0afc 31