AM Not Detecting the Position Until an Update
Re: AM Not Detecting the Position Until an Update
I think for this it should be an LCD screen. Guess that a TFT screen hooked to a Raspi or even a TFT with an Arduino (but with some tinkering with Message port) would do, as the fps is not an issue in this case
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: AM Not Detecting the Position Until an Update
I'm okay with the current font
- BradyBrother100
- Posts: 54
- Joined: Tue Oct 13, 2020 4:21 pm
- Location: United States MDT
Re: AM Not Detecting the Position Until an Update
Hi, the initialization section is still getting ignored until I flick the battery On then Off. Do you know why that is?
Thanks for finding the new font! I will be sure to use that when I get my screen. Speaking of screens, how would I connect and LCD screen to an Arduino Mega?
Thanks!
Brady
Thanks for finding the new font! I will be sure to use that when I get my screen. Speaking of screens, how would I connect and LCD screen to an Arduino Mega?
Thanks!
Brady
- Keith Baxter
- Posts: 4685
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: AM Not Detecting the Position Until an Update
Hi,
Love the screens question.
Keith
Love the screens question.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: AM Not Detecting the Position Until an Update
I tried to help you do this in the other thread where you posted the same query.. Ignore it if you wish.BradyBrother100 wrote: ↑Sun May 23, 2021 9:38 pm Hi, the initialization section is still getting ignored until I flick the battery On then Off. Do you know why that is?
Thanks for finding the new font! I will be sure to use that when I get my screen. Speaking of screens, how would I connect and LCD screen to an Arduino Mega?
Thanks!
Brady
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
- BradyBrother100
- Posts: 54
- Joined: Tue Oct 13, 2020 4:21 pm
- Location: United States MDT
Re: AM Not Detecting the Position Until an Update
Well, I found a really dumb solution but it works. I subscribed to a random dataref that is constantly changing,(like every millisecond) and made that an "updater." In my case it is "sim/private/stats/ogl/swap_time_total" I then made a function so that when that value is changed, which it is always doing, the battery callback is requested. And wah-la, it worked! Now I just need to incorporate JackZ's font and I'll be good to go! Thank you JackZ for telling me about the request_callback command!
Code: Select all
function updater()
request_callback(battery)
end
Re: AM Not Detecting the Position Until an Update
Don’t worry Tony, everybody still love you hereSling wrote: ↑Mon May 24, 2021 2:29 amI tried to help you do this in the other thread where you posted the same query.. Ignore it if you wish.BradyBrother100 wrote: ↑Sun May 23, 2021 9:38 pm Hi, the initialization section is still getting ignored until I flick the battery On then Off. Do you know why that is?
Thanks for finding the new font! I will be sure to use that when I get my screen. Speaking of screens, how would I connect and LCD screen to an Arduino Mega?
Thanks!
Brady
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: AM Not Detecting the Position Until an Update
@BradyBrother100 I don’t know, my latest code works well with the Zibo.BradyBrother100 wrote: ↑Sun May 23, 2021 9:38 pm Hi, the initialization section is still getting ignored until I flick the battery On then Off. Do you know why that is?
Thanks for finding the new font! I will be sure to use that when I get my screen. Speaking of screens, how would I connect and LCD screen to an Arduino Mega?
Thanks!
Brady
If you are using a hardware switch, that’s another layer of complexity
For the screen.
You’ll have to go to the Message Port way and use specific libraries in order to use a 3.5 inches TFT like this one:
https://www.adafruit.com/product/2050
Be warned that lots of cheap ILI9341 LCD screen found on the Net are NOT working with a Mega, as they need 3.3V instead of 5V.
In any case, some Arduino programming knowledge would be required. And the font usage is a whole different story when using Adafruit GFX Library. Your mileage may vary. I have not tried it myself, but considering the fact that I encountered multiple similar problems while using smaller 0.96” Oleds screen with the same Adafruit library, I can tell I speak from experience...
So Yes, using a 3.5” TFT screen with a Mega is doable, but some tinkering is required to make it work with AM. The screen size is around 8x5 cms, I don’t know if that’s enough for your application For bigger sizes, you’ll probably have to go to a Raspberry Pu and an HDMI screen
Jacques
Last edited by JackZ on Mon May 24, 2021 11:52 am, edited 1 time in total.
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: AM Not Detecting the Position Until an Update
This looks interesting - 8 bit interface - support AF library..
https://www.aliexpress.com/item/1005002 ... 6062%23610
https://www.aliexpress.com/item/1005002 ... 6062%23610
Joe. CISSP, MSc.
Re: AM Not Detecting the Position Until an Update
Also, some REALLY nice looking PICO boards coming along. may be a game changer.
https://www.aliexpress.com/item/1005002 ... hweb201603_
#SHOULD~ work with AF lib...... cannot see why not. You can solder a through header to the pico if needed, however, it is probably better in this case to simply use the pico as dedicated as they are so cheap.
Joe.
Also, some really nice PICO expansion boards coming along at around 10 dollars - and price will drop. PICO may be THE thing very soon.
https://www.aliexpress.com/item/1005002 ... hweb201603_
#SHOULD~ work with AF lib...... cannot see why not. You can solder a through header to the pico if needed, however, it is probably better in this case to simply use the pico as dedicated as they are so cheap.
Joe.
Also, some really nice PICO expansion boards coming along at around 10 dollars - and price will drop. PICO may be THE thing very soon.
Joe. CISSP, MSc.