Welcome to Cockpitbuilders.com. Please login or sign up.

April 16, 2024, 03:05:58 AM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
54 Guests, 0 Users
Members
  • Total Members: 4,154
  • Latest: xyligo
Stats
  • Total Posts: 59,640
  • Total Topics: 7,853
  • Online today: 63
  • Online ever: 582
  • (January 22, 2020, 08:44:01 AM)
Users Online
Users: 0
Guests: 54
Total: 54

COUNTDOWN TO WF2022


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

Recent posts

#91
General Discussion Board. / Re: flap indicator interface w...
Last post by Mach7 - August 24, 2023, 02:32:02 PM
Hello guys, as promised a short video and a pic of the Arduino board setup...i still have to clean some wires up and situate the board...but for testing it is good for now.

Thanks again ame and Arturo for all the help.

It's nice to get away from those clunky OpenCockpit controlled dc servo motors..

As far as Mobiflight is concered...I looked into that, but as far as I can see there is no support for FS9.

https://www.youtube.com/watch?v=khojFlD_xV4

Jim
#92
General Discussion Board. / Re: flap indicator interface w...
Last post by ame - August 24, 2023, 01:26:08 PM
Quote from: Jason L on August 24, 2023, 01:15:52 PMAny thoughts of using mobiflight as your interface instead of link2fs?  Actively supported with multiple flavors of arduinos and works really well.
Does it support FS9?

Since it's all working now there's probably not much sense in reimplementing it.
#93
General Discussion Board. / Re: flap indicator interface w...
Last post by Jason L - August 24, 2023, 01:15:52 PM
Any thoughts of using mobiflight as your interface instead of link2fs?  Actively supported with multiple flavors of arduinos and works really well.
#94
General Discussion Board. / Re: flap indicator interface w...
Last post by Mach7 - August 24, 2023, 03:03:57 AM
Thanks again ame

And many thanks to both of you guys!!

Once I have it all connected up I will post a video!

Jim
#95
General Discussion Board. / Re: flap indicator interface w...
Last post by ame - August 24, 2023, 02:54:39 AM
Quote from: Mach7 on August 24, 2023, 02:39:41 AMHello guys, the program works perfectly!!

Thank you!!!!!!!!!!..

@Arturo...I thought I knew what you were talking about with respect to the fuel quantity indication and battery bus power...now seeing it it makes perfect sense to me what you were trying to tell me. Still not an issue for me in this application, but now I understand what you were saying..thanks.

I will put up some screen shots up today.

Also...and not a really big deal...but is there anyway to have the fuel needle(s) move a bit slower to there requested positions?

I notice that it may be beneficial, (to the instrument life itself) to have the needle move slowly to the requested fuel levels...that is to say in transient states the needle will move very fast, epecially when it returns to zero from a high fuel state..the needle "bounces" off its stops.

This may not be too big of an issue...just thinking that anything that moves a bit slower may increase the life of the instrument itself.

Excellent. Glad it's working. Sorry about the rookie mistake.

Regarding damping the needles, a very common technique is to filter the target position with a simple running average:
new_position = (current_ position+target_position)/2
I'll code something up later (now it's bedtime in New Zealand), but that's what I'd do.
#96
General Discussion Board. / Re: flap indicator interface w...
Last post by ame - August 24, 2023, 02:50:08 AM
Quote from: _alioth_ on August 24, 2023, 02:18:50 AMnew mistakes are always funnier, Ame!  :)


I would like to code some cleaner and efficient way to read the link2fs data.

But I would need to know if:
- ticking the box "include CR/LF" there is always a return at the end of each command.
- ticking the box "include comma's between" sends always a "," at the end of each command.

First one, then the other. Not both at the same time, if posible.

Can you help me with this Mach7?  you can see it in link2fs "to card" window or put some screenshots.

Thanks

I see where you're coming from, but nobody uses link2fs anymore, and the website is dead. Link2fs is based on FSConnect, from here:
https://www.dirks-software.ca/

One day FSConnect.dll will die too. However, I thought about using Python to access FSConnect.dll directly, then put a Python wrapper around it. Then it would be no longer necessary to use link2fs.

Furthermore, all the processing could be done in Python, thus leaving the Arduino to output a PWM value to a pin only.
#97
General Discussion Board. / Re: flap indicator interface w...
Last post by Mach7 - August 24, 2023, 02:39:41 AM
Hello guys, the program works perfectly!!

Thank you!!!!!!!!!!..

@Arturo...I thought I knew what you were talking about with respect to the fuel quantity indication and battery bus power...now seeing it it makes perfect sense to me what you were trying to tell me. Still not an issue for me in this application, but now I understand what you were saying..thanks.

I will put up some screen shots up today.

Also...and not a really big deal...but is there anyway to have the fuel needle(s) move a bit slower to there requested positions?

I notice that it may be beneficial, (to the instrument life itself) to have the needle move slowly to the requested fuel levels...that is to say in transient states the needle will move very fast, epecially when it returns to zero from a high fuel state..the needle "bounces" off its stops.

This may not be too big of an issue...just thinking that anything that moves a bit slower may increase the life of the instrument itself.
#98
General Discussion Board. / Re: flap indicator interface w...
Last post by _alioth_ - August 24, 2023, 02:18:50 AM

new mistakes are always funnier, Ame!  :)


I would like to code some cleaner and efficient way to read the link2fs data.

But I would need to know if:
- ticking the box "include CR/LF" there is always a return at the end of each command.
- ticking the box "include comma's between" sends always a "," at the end of each command.

First one, then the other. Not both at the same time, if posible.

Can you help me with this Mach7?  you can see it in link2fs "to card" window or put some screenshots.

Thanks
#99
General Discussion Board. / Re: flap indicator interface w...
Last post by ame - August 24, 2023, 12:43:47 AM
And here's why:
https://stackoverflow.com/questions/92396/why-cant-variables-be-declared-in-a-switch-statement

I've been doing this a while and I've never written anything that happened to cause that problem. I'll try not to do it again (I prefer making new mistakes).
#100
General Discussion Board. / Re: flap indicator interface w...
Last post by ame - August 23, 2023, 11:42:09 PM
Well, how about that?

I concur. I put a bunch of print statements in, to see what was happening: nothing.

Then I moved the variable definitions out: success!

This is why we test code before we post it to the internet.  :-[

Thanks Arturo.
Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate