Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Task.cpp@3:4db174c9e441, 2020-03-25 (annotated)
- Committer:
- zimmeer1
- Date:
- Wed Mar 25 16:12:12 2020 +0000
- Revision:
- 3:4db174c9e441
- Parent:
- 0:d8d297847268
works;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| koenithi | 0:d8d297847268 | 1 | /* |
| koenithi | 0:d8d297847268 | 2 | * Task.cpp |
| koenithi | 0:d8d297847268 | 3 | * Copyright (c) 2020, ZHAW |
| koenithi | 0:d8d297847268 | 4 | * All rights reserved. |
| koenithi | 0:d8d297847268 | 5 | */ |
| koenithi | 0:d8d297847268 | 6 | |
| koenithi | 0:d8d297847268 | 7 | #include "Task.h" |
| koenithi | 0:d8d297847268 | 8 | |
| koenithi | 0:d8d297847268 | 9 | using namespace std; |
| koenithi | 0:d8d297847268 | 10 | |
| koenithi | 0:d8d297847268 | 11 | /** |
| koenithi | 0:d8d297847268 | 12 | * Creates an abstract task object. |
| koenithi | 0:d8d297847268 | 13 | */ |
| koenithi | 0:d8d297847268 | 14 | Task::Task() {} |
| koenithi | 0:d8d297847268 | 15 | |
| koenithi | 0:d8d297847268 | 16 | /** |
| koenithi | 0:d8d297847268 | 17 | * Deletes the task object. |
| koenithi | 0:d8d297847268 | 18 | */ |
| koenithi | 0:d8d297847268 | 19 | Task::~Task() {} |
| koenithi | 0:d8d297847268 | 20 | |
| koenithi | 0:d8d297847268 | 21 | /** |
| koenithi | 0:d8d297847268 | 22 | * This method is called periodically by a task sequencer. |
| koenithi | 0:d8d297847268 | 23 | * It contains the code this task has to work on. |
| koenithi | 0:d8d297847268 | 24 | * @param period the period of the task sequencer, given in [s]. |
| koenithi | 0:d8d297847268 | 25 | * @return the status of this task, i.e. RUNNING or DONE. |
| koenithi | 0:d8d297847268 | 26 | */ |
| koenithi | 0:d8d297847268 | 27 | int Task::run(float period) { |
| koenithi | 0:d8d297847268 | 28 | |
| koenithi | 0:d8d297847268 | 29 | return DONE; |
| koenithi | 0:d8d297847268 | 30 | } |
| koenithi | 0:d8d297847268 | 31 |