ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.99k stars 17.54k forks source link

Gimbal lock on ground position via TX switch #510

Open sgofferj opened 11 years ago

sgofferj commented 11 years ago

Referring to the dev-list discussion https://groups.google.com/d/msg/drones-discuss/1WCkaOHLhAM/tioAbV5YfEsJ

as the APM already has gimbal stabilization integrated, how about a "lock gimbal on target" function which can be activated by the TX, e.g. by CH7.

When activated, the APM would try to keep the gimbal pointed at the same (ground-)position, i.e. azimuth and elevation values, within the boundaries of the max angle settings. It could, if the UAV performed a

180° turn, also turn the azimuth servo around to the opposite side to start following again.

This would be especially useful for plane pilots but also copter pilots would benefit from a function like that. If you see something interesting in our goggles, flip the switch and APM will keep the camera pointed on it so the pilot can keep concentrating on flying.

Naterater commented 5 years ago

This would be useful, but it sounds like just calculating the ROI at any given moment of where the camera is pointing.

rmackay9 commented 1 year ago

This issue is 10 years old but I think the mount-poi lua script could do this with some minor changes. It can already figure out the lat,lon,alt of where the gimbal is pointing. So it is just missing the tiny bit to then set the roi point using this Location.