# Large elevation display

**URL:** <https://discourse.agopengps.com/t/large-elevation-display/17637>\
**Category:** Feature requests\
**Created:** [2 October 2024 14:30 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637 "2024-10-02T14:30:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cosmo](https://discourse.agopengps.com/u/cosmo)\
**Post date:** [2 October 2024 14:30 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/1 "2024-10-02T14:30:28Z")

</div>

I’m not super up on C+, a fellow I set one of these up for just uses it to check elevation with his dozer after he pushes. Just want a massive text box with elevation in the middle of the screen. Any ideas?

---

<div class="post-metadata">

**Author:** ![Davidwedel](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/d/e9a140/32.png) [@Davidwedel](https://discourse.agopengps.com/u/Davidwedel)\
**Post date:** [2 October 2024 16:17 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/2 "2024-10-02T16:17:13Z")

</div>

It’s actually C#. So should be fairly easy. If you can download Visual Studio, and get to the point where you can build AOG from the sourcecode, adding a few lines should get you there. I’ll post a few screenshots.

 ![image](https://discourse.agopengps.com/uploads/default/original/3X/7/8/78779c498200890a64ff898bc13ed8daf111fce9.png)  
 ![image](https://discourse.agopengps.com/uploads/default/original/3X/6/0/604798c39c09c4dd3edd6c96a594dc8fa4171de2.png)  
This is all in OpenGL.Designer.cs. Basically mimics the “Lost RTK” warning.  
I don’t have a Windows PC, so I can’t compile it for you! But It should work 🤞

---

<div class="post-metadata">

**Author:** ![cosmo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cosmo](https://discourse.agopengps.com/u/cosmo)\
**Post date:** [2 October 2024 17:43 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/3 "2024-10-02T17:43:56Z")

</div>

Oh nice I’ll give it a go here, thanks!

---

<div class="post-metadata">

**Author:** ![cosmo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cosmo](https://discourse.agopengps.com/u/cosmo)\
**Post date:** [2 October 2024 18:37 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/4 "2024-10-02T18:37:46Z")

</div>

![Screenshot 2024-10-02 123706](https://discourse.agopengps.com/uploads/default/original/3X/1/2/128667d522e4cfe0f8be531968326c86b019c955.png)

Not sure about this one

 ![Screenshot 2024-10-02 123918](https://discourse.agopengps.com/uploads/default/original/3X/1/b/1bf33d80f65b44a828942592d61541f27f90d3d1.png)

---

<div class="post-metadata">

**Author:** ![cosmo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cosmo](https://discourse.agopengps.com/u/cosmo)\
**Post date:** [2 October 2024 18:52 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/5 "2024-10-02T18:52:14Z")

</div>

changed it to pn.altitude. Thanks again!

 ![Screenshot 2024-10-02 125855](https://discourse.agopengps.com/uploads/default/original/3X/d/b/dbada92e74004a22c8c0290e89b949bef980dfa7.jpeg)

---

<div class="post-metadata">

**Author:** ![Davidwedel](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/d/e9a140/32.png) [@Davidwedel](https://discourse.agopengps.com/u/Davidwedel)\
**Post date:** [2 October 2024 20:23 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/6 "2024-10-02T20:23:20Z")

</div>

Neat! Note that it will probably be in metric only. Is that an issue?

---

<div class="post-metadata">

**Author:** ![cosmo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cosmo](https://discourse.agopengps.com/u/cosmo)\
**Post date:** [2 October 2024 20:56 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/7 "2024-10-02T20:56:31Z")

</div>

Yes we have it running in feet, how’s a guy sort that?

---

<div class="post-metadata">

**Author:** ![Davidwedel](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/d/e9a140/32.png) [@Davidwedel](https://discourse.agopengps.com/u/Davidwedel)\
**Post date:** [2 October 2024 21:58 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/8 "2024-10-02T21:58:31Z")

</div>

![image](https://discourse.agopengps.com/uploads/default/original/3X/e/0/e0632df066491f30856f6aca86c764921873f27a.png)

```auto
private void DrawElevation()//added elevation
        {
            GL.Color3(0.9752f, 0.752f, 0.40f);
			if(isMetric){
	            font.DrawText(-oglMain.Width / 6, 125, pn.altitude.ToString("N2"), 2.0); // "125" is the up and down posiion. Adjust it to where you want it.
			}else{
	            font.DrawText(-oglMain.Width / 6, 125, (pn.altitude * glm.m2ft).ToString("N2"), 2.0); // "125" is the up and down posiion. Adjust it to where you want it.
			}
        }

```

Try changing it to read like that. Make sure the value changes when you switch between imperial/metric. That’s a bit more of a shot in the dark for me 🙂

---

<div class="post-metadata">

**Author:** ![cosmo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cosmo](https://discourse.agopengps.com/u/cosmo)\
**Post date:** [2 October 2024 22:25 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/9 "2024-10-02T22:25:41Z")

</div>

He’s always in ft so I just ignored the if and put the glm.m2ft function in. Thanks again, helps to know what the heck you’re doing

 ![Screenshot 2024-10-02 162429](https://discourse.agopengps.com/uploads/default/original/3X/f/b/fba14e008c78626dea4c2cfbd36abec759a84661.jpeg)

---

<div class="post-metadata">

**Author:** ![Davidwedel](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/d/e9a140/32.png) [@Davidwedel](https://discourse.agopengps.com/u/Davidwedel)\
**Post date:** [2 October 2024 22:30 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/10 "2024-10-02T22:30:42Z")

</div>

Nice! Wouldn’t say I know what I’m doing in CS! How precise do you need it? The “N1” line sets the decimal place to 1. If you need more, change it to “N2” or however accurate you need.

---

<div class="post-metadata">

**Author:** ![cosmo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cosmo](https://discourse.agopengps.com/u/cosmo)\
**Post date:** [2 October 2024 22:34 UTC](https://discourse.agopengps.com/t/large-elevation-display/17637/11 "2024-10-02T22:34:39Z")

</div>

It’s running off rtk now so under half a foot is what he was looking for, don’t think we are into sub inch
