ROME2 Lab3

Committer:
oehlemar
Date:
Wed Mar 25 14:15:52 2020 +0000
Revision:
2:fc9e2aebf9d5
Parent:
0:6a4d3264c067
final

Who changed what in which revision?

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