The current code should detect when bots are upsidedown regardless of whether they are in the air or not.
If, however, a component is causing it to be closer to laying on its side than it won't work. Snow.py has some handling for this kind of situation but it wasn't really designed to work universally. IIRC, it used the getDirection command to check the orientation of the bot.
If this is not the case for you, I would double check that the PY supports a srimech, you are using the correct spelling/capitalization/spacing for the control ingame, and the bindings label the bot as not being invertible.