# Create aerospace attitude indicator in dashboard?

**URL:** <https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957>\
**Category:** Dashboard\
**Created:** [14 February 2021 05:10 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957 "2021-02-14T05:10:40Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 February 2021 19:16 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/41 "2021-02-14T19:16:58Z")

</div>

Files are not loaded. 404 .  
The static folder configuration is not correct.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 19:17 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/42 "2021-02-14T19:17:26Z")

</div>

![flight2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/b/7bcdebca39040733827464c9a8e05922d8dbf2f8.jpeg)

just to check syntax here's the settings.js file

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 19:20 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/43 "2021-02-14T19:20:32Z")

</div>

Should it be .../.node-red/... (with the . before node-red)?

I don't really know what the dot is for, but it's how I have it set up on my side.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 19:20 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/44 "2021-02-14T19:20:56Z")

</div>

I can do that

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 February 2021 19:21 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/45 "2021-02-14T19:21:00Z")

</div>

That will go under the art category and that's the area I'm far from being an expert. No advises from me.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 19:23 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/46 "2021-02-14T19:23:02Z")

</div>

TADA!!!! got the dashboard, good eyes @a1ex

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 19:24 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/47 "2021-02-14T19:24:12Z")

</div>

ok, so thanks @hotNipi for the flow and help and thank you @a1ex for spotting my mistake  
[edit]  
can't forget to thank @dceejay for weighing in either.

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 19:42 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/48 "2021-02-14T19:42:01Z")

</div>

Ha ha, that's how I felt when I got mine to work. Yeah, huge thanks to @hotNipi for sharing and helping! This is the sort of thing I expected to struggle with for a month 😃

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 19:51 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/49 "2021-02-14T19:51:19Z")

</div>

...aaand I'm driving the altimeter using external simulation data transmitted through a TCP connection.

I accomplished more today than I normally do in a week. I bow ☀

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 19:58 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/50 "2021-02-14T19:58:57Z")

</div>

I'm driving my display from a mpu9250, pieces are working, I'll keep trying

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 20:03 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/51 "2021-02-14T20:03:46Z")

</div>

You're well ahead of me then... I got my Arduino IMUs literally yesterday and still have to figure out how to work with them. I'll be psyched if I can drive a proper aerospace dashboard both from simulation data and from hardware data.

One issue I'm having with simulation data received by TCP connection is that... it hiccups a lot, and even though my simulation data is generated at 60 Hz, the dashboard altimeter refreshes at a much slower and variable rate...

Will have to troubleshoot, but would love to know if @gerry sees this problem with hardware data...

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 20:07 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/52 "2021-02-14T20:07:01Z")

</div>

the chip is relatively slow, you can only interrogate it about once a second, at that rate the dashboard has no issue in keeping up but the displays do appear to "jitter" if there is large movement in that second due to the slow interrogation rate.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 20:11 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/53 "2021-02-14T20:11:15Z")

</div>

I did push the chip to a 1/4 second interrogation and it does seem to work fine there.... so far

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 20:11 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/54 "2021-02-14T20:11:19Z")

</div>

Which board are you using? I wonder now if I'll need something more powerful. I have an Uno and am expecting a Mega 2560 plus a 4-GB Raspberry Pi 4 later today. It'd be nice to refresh the dashboard maybe 10x/s...

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 20:12 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/55 "2021-02-14T20:12:03Z")

</div>

I am running the chip off a pi 3 b, and it seems to work  
[edit]  
and the dashboard runs on the same pi

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 February 2021 20:12 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/56 "2021-02-14T20:12:56Z")

</div>

Hidden gemms 🙂

There is 6 gauges 🙂

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/53043d1517854e97640867e164b102c8a37619ae.jpeg)

```auto
turn_coordinator  

```

And to set value for it

```auto
setTurn(msg.payload)

```

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 20:15 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/57 "2021-02-14T20:15:12Z")

</div>

interesting, I don't have the airspeed gauge apparently, nor the turn coordinator

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 20:18 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/58 "2021-02-14T20:18:34Z")

</div>

Ah! Oh my god, yes, that last gauge is useful too. It looks so realistic. This is excellent work, dude.

OK, I copied the code... Do I just do CTRL+I to import as before and add the new flow to the rest I had already imported?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 February 2021 20:19 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/59 "2021-02-14T20:19:03Z")

</div>

Post 11 I shared flow with 5 gauges which are documented.  
Just read the library and found there is one more.

But I leave it for you to manage it being displayed. All clues given to achieve that 🙂

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 20:20 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/60 "2021-02-14T20:20:33Z")

</div>

@a1ex does you dashboard show the airspeed?

[Previous page](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957.md?page=2)

[Next page](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957.md?page=4)
