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: LedController mbed-rtos mbed NerfUSXbee Servomotor TargetManager
Fork of NerfUS by
Diff: include/TargetManager.hpp
- Revision:
- 30:412a779cf607
- Parent:
- 28:8fc53a870691
- Child:
- 32:50b777bab5a4
--- a/include/TargetManager.hpp Mon Mar 27 18:39:38 2017 -0400
+++ b/include/TargetManager.hpp Mon Mar 27 19:05:45 2017 -0400
@@ -1,7 +1,9 @@
#ifndef TARGET_MANAGER_HPP
#define TARGET_MANAGER_HPP
+#include "NerfusTickerInterface.hpp"
#include "TargetInfo.hpp"
+#include "TargetInterface.hpp"
#include "TargetManagerInterface.hpp"
#include <vector>
@@ -9,12 +11,16 @@
class TargetManager : public TargetManagerInterface
{
public:
+ TargetManager(std::vector<TargetInterface*>& targets, NerfusTickerInterface& nerfus_ticker);
+
void execute(const std::vector<TargetInfo> sequence);
virtual void target_missed(int target_id);
virtual void target_hit(int target_id);
private:
+ std::vector<TargetInterface*>& targets;
+ NerfusTickerInterface& nerfus_ticker;
};
#endif
