Sailboat Support

I think the I will implement the reaching back and forth for loiter, we can always add other methods in the future. I quite like the idea of the plane style circling loiter so I might do that too.

The pot is just connected to a analog input pin, on my pixhawk i have used the 6.6v input so I can connect the power for the pot straight to 5v, you can use the 3.3v pins but you will need to add some resistors so you can’t get more then 3.3v on the output. Buy default the pin is defined to be the one usually used for the airspeed sensor. So you have one of the outer pins to 5v (for the 6.6v analog in) or <3.3 (for the 3.3v analog pin), the other outer pin is connected to ground. The central pin then goes to the analog input. Currently the code assumes the voltage increases as the vane moves clockwise so you may find you have to swap the two outer pins to get it to read correctly. The wind speed sensor has not been programmed yet.

2 Likes