Implements and integrates SolenoidFactory
This commit is contained in:
33
FlippR-Driver/src/output/factories/SolenoidFactory.h
Normal file
33
FlippR-Driver/src/output/factories/SolenoidFactory.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* SolenoidFactory.h
|
||||
*
|
||||
* Created on: January 6, 2020
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
||||
*/
|
||||
|
||||
#ifndef FLIPPR_DRIVER_SOLENOIDFACTORY_H
|
||||
#define FLIPPR_DRIVER_SOLENOIDFACTORY_H
|
||||
|
||||
#include "output/DriverBoardPinController.h"
|
||||
#include "ItemFactory.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
|
||||
class SolenoidFactory : public ItemFactory
|
||||
{
|
||||
public:
|
||||
explicit SolenoidFactory(nlohmann::json &object, std::shared_ptr<DriverBoardPinController> pin_controller);
|
||||
|
||||
std::map<std::string, std::shared_ptr<items::Item>> getItemMap() override;
|
||||
|
||||
private:
|
||||
uint8_t deactivation_time;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif //FLIPPR_DRIVER_SOLENOIDFACTORY_H
|
||||
Reference in New Issue
Block a user