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
TaskWait.h
00001 /* 00002 * TaskWait.h 00003 * Copyright (c) 2017, ZHAW 00004 * All rights reserved. 00005 */ 00006 00007 #ifndef TASK_WAIT_H_ 00008 #define TASK_WAIT_H_ 00009 00010 #include <cstdlib> 00011 #include "Task.h" 00012 #include "Controller.h" 00013 00014 /** 00015 * This is a specific implementation of a task class that waits for a given duration. 00016 */ 00017 class TaskWait : public Task { 00018 00019 public: 00020 00021 TaskWait(Controller& controller, float duration); 00022 virtual ~TaskWait(); 00023 virtual int run(float period); 00024 00025 private: 00026 00027 Controller& controller; 00028 float duration; 00029 float time; 00030 }; 00031 00032 #endif /* TASK_WAIT_H_ */ 00033
Generated on Tue Aug 2 2022 10:35:51 by
