Even if this is the case (I'm not so sure), I'd rather it be the other way around. When we switch to our discovery tools fire group, then automatically enable "analysis mode", and then when we switch to our weapons fire group, automatically enable "combat mode", if separate modes are indeed needed. Why is is this better? Because I already have buttons mapped for switching fire groups
And for those who will pose the question, Frontier could implement a "lock" that prevents mixing weapons and discovery tools in the same fire group. It'll be just as easy, and way more logical, and kicking up this "Module cannot be used in this cockpit mode" message all the time.