Hi. I am writing some of my own code, and I would like to check the voltage level. I already have a voltage divider on my board. (It's the NanoWii from Hobby King.) The voltage is displayed correctly in the GUI, but I would like to access it in my own code (which I added in Output.cpp as a new model type) so that I can have the aircraft perform some specific functions when the voltage gets low. (I know MultiWii already provides a low voltage alarm. That is not what I want to do.)
Is there some way I can assign the voltage level to a variable that I can access in my code? Thanks for your help!
Nathan
How to find Voltage Level
Re: How to find Voltage Level
If you follow the VBAT defines through the code in you will find the actual reading sequence togther with the struct and variable names.