some logs

This commit is contained in:
Jonas Zeunert
2018-12-19 23:28:13 +01:00
parent 423fb50096
commit bc35bcbea6
15 changed files with 57 additions and 20 deletions

View File

@@ -21,6 +21,7 @@ Display<DigitCount>::Display(uint8_t address, uint8_t id) :
address(address),
id(id)
{
CLOG(INFO, OUTPUT_LOGGER) << "Created display with id " << id << " and address " << address << ".";
}
template<int DigitCount>

View File

@@ -7,6 +7,8 @@
#include "Lamp.h"
#include "utility/config.h"
namespace flippR_driver
{
namespace output
@@ -18,7 +20,9 @@ namespace detail
Lamp::Lamp(std::shared_ptr<DriverBoardPinController> pin_controller, uint8_t address, std::string name) :
DriverBoardItem(std::move(pin_controller), address, std::move(name)), activated(false)
{}
{
CLOG(INFO, OUTPUT_LOGGER) << "Created lamp " << name << " with address " << address;
}
void Lamp::activate()
{

View File

@@ -7,6 +7,8 @@
#include "Solenoid.h"
#include "utility/config.h"
namespace flippR_driver
{
namespace output
@@ -19,7 +21,9 @@ namespace detail
Solenoid::Solenoid(std::shared_ptr<DriverBoardPinController> pin_controller, uint8_t address, std::string name, std::chrono::milliseconds deactivation_time)
:
DriverBoardItem(std::move(pin_controller), address, std::move(name)), deactivation_time(deactivation_time)
{}
{
CLOG(INFO, OUTPUT_LOGGER) << "Created solenoid " << name << " with address " << address;
}
void Solenoid::triggerTask()
{

View File

@@ -9,6 +9,8 @@
#include <output/SoundBoardPinController.h>
#include "utility/config.h"
namespace flippR_driver
{
namespace output
@@ -21,7 +23,9 @@ namespace detail
Sound::Sound(std::shared_ptr<SoundBoardPinController> pin_controller, uint8_t address, std::string name, std::chrono::milliseconds deactivation_time, u_int id)
:
pin_controller(std::move(pin_controller)), Item(address, std::move(name)), deactivation_time(deactivation_time), id(id)
{}
{
CLOG(INFO, OUTPUT_LOGGER) << "Created sound " << id << " with name " << name << " and address " << address;
}
void Sound::play()
{