File target_selection.h
File List > target_selection.h
Go to the documentation of this file
#pragma once
#include "command.h"
#include "shared_types.h"
class TargetSelection: virtual public Command, public AutoCommand<TargetSelection> {
public:
// -- Constructors --
TargetSelection(
TargetSource initial_target_source,
uint8_t initial_target_id,
int initial_speed,
int64_t initial_run_after
);
// -- Public Methods --
void Execute(SystemState* state) override;
private:
// -- Private Attributes --
TargetSource target_source;
uint8_t target_id;
int speed = 0xFF;
};