From what I can tell the dg command is separated from the hd command which is good. Please let me know when your code is ready to be merged to staging and I will handle it. Also for the next feature you're working on please branch off of the latest staging.
I don't think this is the right place to clear alarm conditions. This area of code is updating the actual detected switch states. But switch states are overridable so we should consider any overrides when clearing alarm conditions.
Data is packaging several pieces of information for both ADA and ADV air bubble detectors, hence, the grammar is plural. The other override functions are commanding on only one of the detectors depending on the index, hence, the grammar is singular.