New project - MSFS C++ USB interface


+ Reply to Thread
Results 1 to 40 of 170

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    Seems you are very persistent person! And wow, you did an amazing trip through all these environments...!

    Respect from me.

    Ioannis

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    I prefer the term "obnoxiously stubborn and willfully oblivious".

    Note to future-self, ALWAYS put the Windows INCLUDE at the top of the list. Argh, the multitude of insane errors and hours of google searches...


    Status of the day; didn't get as far as I planned with that stupid include problem, but I did get to compile the generated code with USB components in 64-bits, and connect to MSFS, that last part was my do-or-die moment of the day.

    Name:  Connected to FS with USB code.png
Views: 27691
Size:  717.1 KB

    EDIT: Oh yeah, the single button in the interface works fine; changing between a 0 and a 1 when I press a button on the Lab-X1. Haven't implemented anything else yet.
    Last edited by Demon; - 19th May 2023 at 23:17.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    Men can find joy from the simplest things.

    Landing light ON-OFF from the Lab-X1 via USB.

    Name:  Landing light ON-OFF from Lab-X1.png
Views: 23378
Size:  447.8 KB

    Robert

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    Quote Originally Posted by Demon View Post
    Men can find joy from the simplest things.

    Landing light ON-OFF from the Lab-X1 via USB.
    Oh, yeah! I understand that feeling... Especially after the long trip to finally manage that damn thing to flip!

    Ioannis

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    YAY! I can finally detect a change in Engine RPM. And this is why I absolutely wanted to have Code Debugging working.

    Name:  Engine RPM change detected.png
Views: 27483
Size:  498.7 KB

    Now I just have to learn how to use structures and variables in C++. I kept trying to peek at that data, but I just couldn't get to see anything meaningful.

    Good thing we have google tutorials. Worse case, I'll ask on the Dev forums, but I want to try to get there on my own.

    Robert

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    You did all that in C++ with no knowledge of structures and variables?

    For me C was difficult when I tried to learn and then C++ was 10 fold worse...

    Well, I have to try again I guess.

    Well done Robert.

    Ioannis

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    Thanks. Yup, tried C For Dummies 20+ years ago and got nowhere fast.

    I'll refer you one youtube video later. The dude speaks clearly, and in no time you have a basic window with buttons and stuff.

    Best part, Visual Studio 2022 Community is free. It's way better than what we had for Visual Basic way back when.
    Last edited by Demon; - 22nd May 2023 at 01:08.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. USB interface
    By Frozen001 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th December 2011, 20:37
  2. Host for USB interface?
    By Carrasco in forum Off Topic
    Replies: 4
    Last Post: - 4th August 2007, 00:59
  3. USB Interface using PIC
    By Tissy in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 22nd May 2006, 17:04
  4. USB interface from PIC16F877 to PC
    By headshouter in forum USB
    Replies: 0
    Last Post: - 26th February 2006, 05:58
  5. USB project
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 18th January 2005, 22:59

Members who have read this thread : 7

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts