Closed OLLYDOTDEV closed 3 years ago
to start off i started with taking some of my older test code Full_Trigger_Test.ino
and added the capabilities to have individual sensors turned on and off depending on control variables
to import this test code into ROMS.cpp
then a custom function called was make SecurityMode()
this takes the mode that is transmitted from the Raspberry Pi and depending on the mode, it configures the sensors to be the enabled/ disabled.
other than that the only other main code optimizations is that when it is in the off state it has a software flag set so that it reduces the unnecessary time used to poll the sensor data but rather dedicates it extra time to be prepared to receive transmissions and be ready to change mode
As a user there should be modes that ROMS can be put into this will configure that sensor will be used and when