Refactored Insight GUI to accommodate the many changes made to Bloom's internals

Also lots of tidying.
This commit is contained in:
Nav
2024-12-24 18:27:59 +00:00
parent 28e0a6d9e4
commit 7fe5b88dd8
195 changed files with 3449 additions and 3171 deletions

View File

@@ -0,0 +1,21 @@
#include "ReadTargetGpioPadStates.hpp"
using Services::TargetControllerService;
ReadTargetGpioPadStates::ReadTargetGpioPadStates(const Targets::TargetPadDescriptors& padDescriptors)
: padDescriptors(padDescriptors)
{}
QString ReadTargetGpioPadStates::brief() const {
return "Reading target pin states";
}
TaskGroups ReadTargetGpioPadStates::taskGroups() const {
return {
TaskGroup::USES_TARGET_CONTROLLER,
};
}
void ReadTargetGpioPadStates::run(TargetControllerService& targetControllerService) {
emit this->targetGpioPadStatesRead(targetControllerService.getGpioPadStates(this->padDescriptors));
}