Christian Burri / Mbed 2 deprecated autonomousRobotAndroid

Dependencies:   mbed

Fork of autonomousRobotAndroid by Christian Burri

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Task.cpp Source File

Task.cpp

00001 #include "Task.h"
00002 
00003 Task::Task(float period)
00004 {
00005     this->period = period;
00006 }
00007 
00008 Task::~Task()
00009 {
00010 
00011 }
00012 
00013 float Task::getPeriod()
00014 {
00015     return period;
00016 }
00017 
00018 void Task::start()
00019 {
00020     ticker.attach(this, &Task::run, period);
00021 }
00022 
00023 void Task::stop()
00024 {
00025     ticker.detach();
00026 }
00027 
00028 void Task::run()
00029 {
00030 
00031 }