Replaced WriteRegistersToTarget event with TC command

This commit is contained in:
Nav
2022-04-24 17:37:58 +01:00
parent 0c4b5a864e
commit 67677e6ea7
8 changed files with 53 additions and 66 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include <optional>
#include "Command.hpp"
#include "src/Targets/TargetRegister.hpp"
namespace Bloom::TargetController::Commands
{
class WriteTargetRegisters: public Command
{
public:
static constexpr CommandType type = CommandType::WRITE_TARGET_REGISTERS;
static inline const std::string name = "WriteTargetRegisters";
Targets::TargetRegisters registers;
explicit WriteTargetRegisters(const Targets::TargetRegisters& registers)
: registers(registers)
{};
[[nodiscard]] CommandType getType() const override {
return WriteTargetRegisters::type;
}
};
}