Board index FlightGear Support Interfacing

FG no output to lcd shield/Arduino  Topic is solved

Connecting two computers, using generic protocol, connecting with Matlab?

Re: FG no output to lcd shield/Arduino

Postby SurferTim » Sun Dec 18, 2022 2:04 pm

Sounds like you are almost there. Post when you get to combining the scripts if you have challenges.
You should be able to use the printf format settings on the float (double) values in your chunks.
Code: Select all
<format>%3.2f</format>

https://en.wikipedia.org/wiki/Printf_format_string
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: FG no output to lcd shield/Arduino  

Postby rooman » Sun Dec 18, 2022 6:31 pm

Data going both ways now, thanks a lot for your help
Grew up with Dr Who then discovered Monty Python and Middle Earth. The world was never the same.
rooman
 
Posts: 169
Joined: Sun Apr 12, 2015 7:26 pm
Location: Lausanne, Switzerland
Callsign: HB-ROO
Version: Next + LTS
OS: Ubuntu latest stable

Previous

Return to Interfacing

Who is online

Users browsing this forum: No registered users and 4 guests