I want connect a potentiometer in the adc port of the pixhawk CubeBlack. The data that I want to get is position data. So, I connected the potentiometer in a cable and connected it to the ADC3,3V port. But, how do I use this port to get position data instead of airspeed? IN Mission Planner only have option airspeed.
For example, I put a cable with a load, when this load swings it will move the potentiometer that is connected to the ADC 3,3V port CubeBlack. But how do I use this port to get position data instead of airspeed.
After connecting potentiometer in the ADC port, I entered Mission Planner, went to setup and airspeed it had found - pin: Pixhawk analog AS port , Type: Analog, as see below:
I recall others using the analog fuel level function with the battery monitor to read a generic analog voltage. You can scale it with the available parameters. You can use RSSI input also.
How to get around this? Do you (or @Yuri_Rage and @dkemxr ) have annathor alternative using ADC port? (@dkemxr provided the possibility RSSI input but yet wanted to try ADC port)
Can python read the ADC port and store the data in the log?