This program is for an autonomous robot for the competition at the Hochschule Luzern. http://cruisingcrepe.wordpress.com/ We are one of the 32 teams. http://cruisingcrepe.wordpress.com/ The postition control is based on this Documentation: Control of Wheeled Mobile Robots: An Experimental Overview from Alessandro De Luca, Giuseppe Oriolo, Marilena Vendittelli. For more information see here: http://www.dis.uniroma1.it/~labrob/pub/papers/Ramsete01.pdf
Fork of autonomous Robot Android by
Task/Task.cpp@0:31f7be68e52d, 2013-02-07 (annotated)
- Committer:
- chrigelburri
- Date:
- Thu Feb 07 17:43:19 2013 +0000
- Revision:
- 0:31f7be68e52d
- Child:
- 3:92ba0254af87
first steps
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chrigelburri | 0:31f7be68e52d | 1 | #include "Task.h" |
chrigelburri | 0:31f7be68e52d | 2 | |
chrigelburri | 0:31f7be68e52d | 3 | Task::Task(float period) |
chrigelburri | 0:31f7be68e52d | 4 | { |
chrigelburri | 0:31f7be68e52d | 5 | this->period = period; |
chrigelburri | 0:31f7be68e52d | 6 | } |
chrigelburri | 0:31f7be68e52d | 7 | |
chrigelburri | 0:31f7be68e52d | 8 | Task::~Task() |
chrigelburri | 0:31f7be68e52d | 9 | { |
chrigelburri | 0:31f7be68e52d | 10 | |
chrigelburri | 0:31f7be68e52d | 11 | } |
chrigelburri | 0:31f7be68e52d | 12 | |
chrigelburri | 0:31f7be68e52d | 13 | float Task::getPeriod() |
chrigelburri | 0:31f7be68e52d | 14 | { |
chrigelburri | 0:31f7be68e52d | 15 | return period; |
chrigelburri | 0:31f7be68e52d | 16 | } |
chrigelburri | 0:31f7be68e52d | 17 | |
chrigelburri | 0:31f7be68e52d | 18 | void Task::start() |
chrigelburri | 0:31f7be68e52d | 19 | { |
chrigelburri | 0:31f7be68e52d | 20 | ticker.attach(this, &Task::run, period); |
chrigelburri | 0:31f7be68e52d | 21 | } |
chrigelburri | 0:31f7be68e52d | 22 | |
chrigelburri | 0:31f7be68e52d | 23 | void Task::stop() |
chrigelburri | 0:31f7be68e52d | 24 | { |
chrigelburri | 0:31f7be68e52d | 25 | ticker.detach(); |
chrigelburri | 0:31f7be68e52d | 26 | } |
chrigelburri | 0:31f7be68e52d | 27 | |
chrigelburri | 0:31f7be68e52d | 28 | void Task::run() |
chrigelburri | 0:31f7be68e52d | 29 | { |
chrigelburri | 0:31f7be68e52d | 30 | |
chrigelburri | 0:31f7be68e52d | 31 | } |