Center of camera view displayed as Lat/Long???

Hey guys, Ive been thinking... I want to mount a camera on a PT mount underneath my skywalker. I have 0 experience in programing, but I was wondering if it was possible to have the APM 2.5 calculate the angular difference from its pwm input on the servos(pan/tilt), then translate that to a distance and direction from its current gps location and Magnometer direction and altitude using some trigonometry to determine the ground distance from the plane to the center of view point and then display the location of the center view of the camera on the OSD? Is this feasable, or does it already exist? 

Camera Location.jpg

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Yes, this should be possible, but it would only ever be a rough guide because - a) you would have to assume the ground you are looking at nearly the same elevation as the ground you are currently over, so if you are pointing at a hill or valley, it will be out by a bit. b) there is also quite a bit of sloppiness in the servo movement for most servos and the precision of the sensors in APM in general. If you are not after a precise reading (ie. you are not doing aerial mapping),  you could get an estimate of where you are looking. You would also need to tune it for your setup, much like roll and tilt stabilisation today.

    There is a "point camera here" function in mission planner, which is kind of the reverse of what you want, but the code could be used as a starting point for this. I'm not sure if it would fit within MinimOSD's remaining memory bounds, which are already being pushed!

    What you want for this is the haversine formula (an approximation will probably do). Have a look at http://www.movable-type.co.uk/scripts/latlong.html

     

    Cheers

    James 

    Calculate distance and bearing between two Latitude/Longitude points using haversine formula in Jav…
This reply was deleted.

Activity

Chris Anderson liked Zara Mae Pickering's profile
May 21
Azjeg liked Azjeg's profile
Apr 27
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
More…