You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when an interrupt is called, an event should be sent to the interrupt handler using the provided hub
the event should be [ 3 /* interrupt id */, 1 /* new state */ ]
call disable() on all controllers when interrupt is disabled
call enable() on all controllers when interrupt is enabled
send an event on start
Other thoughts
#define BUTTON_1 8 // arduino pin numbers
#define INTERRUPT_HANDLER 10 // c++ system to send it to
auto controller = new Controllers::KillSwitch(BUTTON_1, INTERRUPT_HANDLER, controllersToStop);
// create Hub
controller.use(hub);
The text was updated successfully, but these errors were encountered:
konnorandrews
changed the title
Interrupt Controller (Arduino)
Kill Switch Controller (Arduino)
Apr 2, 2018
Requirements
void enable()
to controller interface (this should allow movement)void disable()
to controller interface (this should stop any movement)submarine/utils/arduino/Hub/src/Controllers
Controller
interfaceexecute
commands[ 3 /* interrupt id */, 1 /* new state */ ]
disable()
on all controllers when interrupt is disabledenable()
on all controllers when interrupt is enabledOther thoughts
The text was updated successfully, but these errors were encountered: