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

    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

  2. #2
    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: 25703
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

  3. #3
    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

  4. #4
    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 00: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!

  5. #5
    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

    Here, download and install VS2022 Community. It's free.

    Then follow his instructions to the letter. You have a simple Windows form in no time.

  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

    Thanks for the link.

    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

    It's so frustrating. "Experts" on forums assume you know C++ nearly as much as they do, or point to sample code that is exactly like what you've already put together, or say "hey, just use this conversion routine" - except that routine doesn't work against that sort of variable.

    Name:  Engine RPM read.png
Views: 25637
Size:  432.8 KB

    I'm so close, I can see the data in the structure and it matches what's displayed on the instrument panel. I guess I'm off to "C++ structure tutorials" in hope of finding something useful.

    Robert

Similar Threads

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

Members who have read this thread : 10

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