For things like inverters for example, yes, you have to measure things to decide when to turn on (say) transistors based on that information. You have to carefully design it if you want to be able to drive the exact same H-bridge in reverse as a rectifier.