gugus

Dependencies:   mbed

Committer:
Brignall
Date:
Fri May 18 12:18:21 2018 +0000
Revision:
0:1a0321f1ffbc
lala;

Who changed what in which revision?

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