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.
Fork of ROME2_P3 by
TaskWait.h
00001 /* 00002 * TaskWait.h 00003 * Copyright (c) 2018, ZHAW 00004 * All rights reserved. 00005 */ 00006 00007 #ifndef TASK_WAIT_H_ 00008 #define TASK_WAIT_H_ 00009 00010 #include <cstdlib> 00011 #include "Controller.h" 00012 #include "Task.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 Thu Jul 14 2022 22:37:02 by
