Determine Target Distance Given Depression Angle and Altitude

Skylar289

New Member
Joined
May 4, 2012
Messages
9
Ok, I'm not a programmer and my excel skills are stretched to the max at this point.

Problem

I am in an aircraft with a camera, on a gimbal. I know my altitude, I know my depression angle of my camera, should be simple enough to find my distance. Unfortunately I have no idea how to calculate degrees to radians, then input said radians into my formula and solve for distance.

400 ft Height
20 degrees downward angle
x is my distance variable

Eventually I would also like to use my current gps coordinates, my aircraft heading, my camera starepoint heading, and my distance....solved by the above problem, and determine the coordinates of what I am looking at.

Please help. I'm not even sure excel can even handle this, but if its possible, please let me know!!!
 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

davesweep

Well-known Member
Joined
Apr 30, 2007
Messages
510
Hi,

You want to know the distance from the camera to the ground?

=height / cos(90-angle of depression in degrees)

to convert from degrees to radians, multiply by pi/180

So, if the height is in A1 and the depression angle in A2,

=A1/COS((90-A2)*PI()/180)
 

bertie

Well-known Member
Joined
Jun 12, 2009
Messages
1,869
Hi, and welcome to the forum.

You can use the Radians() function to convert degrees to radians, see the help file.

It has been many moons since I last used trigonometry, so apologies if my formula is wrong, for example:

Excel Workbook
ABC
1HeightAngleDistance
240002011695.22
Sheet1


NB
I haven't taken into account if you need to convert feet to metres, etc.
 

MikeWx

Active Member
Joined
Jan 16, 2010
Messages
436
With your height above the ground as 400 feet and the angle below horizontal as 20 degrees, the following formula gives the distance to what the camera is looking at as 1,099 feet away from the point the plane is currently located at. It looks correct on the diagram I drew, but the diagram doesn't load to the forum.

Sheet1

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD>Height</TD><TD>Angle</TD><TD>Distance</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="TEXT-ALIGN: right">400</TD><TD style="TEXT-ALIGN: right">20</TD><TD style="TEXT-ALIGN: right">1098.991</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>C2</TD><TD>=A2/TAN(RADIANS(B2))</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4


Mike
 

Skylar289

New Member
Joined
May 4, 2012
Messages
9
With your height above the ground as 400 feet and the angle below horizontal as 20 degrees, the following formula gives the distance to what the camera is looking at as 1,099 feet away from the point the plane is currently located at. It looks correct on the diagram I drew, but the diagram doesn't load to the forum.

Sheet1

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD>Height</TD><TD>Angle</TD><TD>Distance</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="TEXT-ALIGN: right">400</TD><TD style="TEXT-ALIGN: right">20</TD><TD style="TEXT-ALIGN: right">1098.991</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>C2</TD><TD>=A2/TAN(RADIANS(B2))</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4


Mike
AWESOME!!! That did it! all of your equations worked, I chose Mike's using Tan. Thanks everyone!
 

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,752
Office Version
2010
Platform
Windows
That assumes that the world is flat with no terrain relief ...
 

Watch MrExcel Video

Forum statistics

Threads
1,101,810
Messages
5,483,042
Members
407,375
Latest member
achusp

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top