Code for the Bavarian R2 Builders' Droid Control System, consisting of dual miniature multi-axis remote controls and a droid control board, currently for BB-8. Please refer to the Wiki for reference.
It would be cleaner to move all commands that affect one subsystem into bb::Subsystem::handleConsoleCommand() (currently purely virtual); this could take start/stop/restart/set etc. On toplevel we could keep commands affecting all subsystems.
Command concept is not really clean.
start <subsys>
,set <subsys> <var>
etc., but<subsys> <special-command>
It would be cleaner to move all commands that affect one subsystem into
bb::Subsystem::handleConsoleCommand()
(currently purely virtual); this could takestart
/stop
/restart
/set
etc. On toplevel we could keep commands affecting all subsystems.