24#ifndef TAPROOT_HOLD_REPEAT_COMMAND_MAPPING_HPP_
25#define TAPROOT_HOLD_REPEAT_COMMAND_MAPPING_HPP_
65 const std::vector<Command *> cmds,
Definition drivers.hpp:70
Definition command_mapping.hpp:48
Drivers * drivers
Definition command_mapping.hpp:117
std::vector< Command * > mappedCommands
Definition command_mapping.hpp:115
Definition hold_repeat_command_mapping.hpp:48
void incrementRescheduleCount(int cmdIndex)
Definition hold_repeat_command_mapping.hpp:93
bool okToScheduleCommand(int cmdIndex) const
Definition hold_repeat_command_mapping.hpp:101
bool held
Definition hold_repeat_command_mapping.hpp:88
std::vector< int > rescheduleCounts
Definition hold_repeat_command_mapping.hpp:91
void executeCommandMapping(const RemoteMapState &currState) override
Definition hold_repeat_command_mapping.cpp:32
~HoldRepeatCommandMapping() override=default
bool endCommandsWhenNotHeld
Definition hold_repeat_command_mapping.hpp:89
mockable void setMaxTimesToSchedule(int maxTimes)
Set the maximum times each of commands should be re-scheduled.
Definition hold_repeat_command_mapping.hpp:85
int maxTimesToSchedule
Definition hold_repeat_command_mapping.hpp:90
HoldRepeatCommandMapping(Drivers *drivers, const std::vector< Command * > cmds, const RemoteMapState &rms, bool endCommandsWhenNotHeld, int maxTimesToSchedule=-1)
Definition hold_repeat_command_mapping.hpp:63
Definition remote_map_state.hpp:56
Definition ballistics.cpp:29
#define mockable
Wrap class functions that are not already virtual in this function if you wish to mock them.
Definition util_macros.hpp:38