Results 1 to 10 of 10

Thread: serial port programming and fancy telemtry control.

  1. #1
    Join Date
    Jul 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default serial port programming and fancy telemtry control.

    I'm working on a quad-copter,
    which i need to control via the COM port of my PC. I added qextserial
    library from http://code.google.com/p/qextserialport/, but i had read
    in a post in an instructable that you have to compile it in the prompt
    console or something, well, i wasn't able to do it. So i'm not quite
    sure if the serial thingy is working in the first place. Please do
    tell me what i should do.
    Also, I've attached a copy of how my telemetry control software should
    look like, please do have a look and point me in the right direction
    on what category it falls when i select the new project.fancy-telemetry-system-for-quadcopter2.jpg

    And i'm using Qt Creator 2.4.1
    Last edited by hjjayakrishnan; 2nd July 2012 at 14:08.

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: serial port programming and fancy telemtry control.

    You can try another library QtSerialPort

    Also see this topic

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: serial port programming and fancy telemtry control.

    well, i wasn't able to do it.
    Will you tell us what was the problem or do we have to guess?
    Also, I've attached a copy of how my telemetry control software should
    look like, please do have a look and point me in the right direction
    The right direction to where?
    What do you expect as and answer?

    Please be more specific with the problems you have.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  4. #4
    Join Date
    Jul 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: serial port programming and fancy telemtry control.

    Sorry about that.

    1. I have never worked with qt before, so if you just say do qmake , do compile, etc etc I'm not gonna understand a thing. So i'd appreciate, if you could tell me, step by step, what i should do to get qextserialport working on my qt. I've just downloaded it and extracted it. I've looked at tons of material on google, and none helped me.

    2. There are analog meters and graphics that you usually see in flight simulators, to check the inclination of the aircraft. I will be using data from my accelerometer and gyroscopes, send them via the serial port and into these meters. Is there some way i could download the code, for say, the analog meter and add it to my project, rather than coding the entire thing from scrap. If, yes how can i do that?

    I hope i have conveyed it, this time.
    Thanks in advance.


    Added after 8 minutes:


    Sorry about that.

    1. I have never worked with qt before, so if you just say do qmake , do compile, etc etc I'm not gonna understand a thing. So i'd appreciate, if you could tell me, step by step, what i should do to get qextserialport working on my qt. I've just downloaded it and extracted it. I've looked at tons of material on google, and none helped me.

    2. There are analog meters and graphics that you usually see in flight simulators, to check the inclination of the aircraft. I will be using data from my accelerometer and gyroscopes, send them via the serial port and into these meters. Is there some way i could download the code, for say, the analog meter and add it to my project, rather than coding the entire thing from scrap. If, yes how can i do that?

    I hope i have conveyed it, this time.
    Thanks in advance.
    Last edited by hjjayakrishnan; 5th July 2012 at 17:01.

  5. #5
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: serial port programming and fancy telemtry control.

    qextserilport is just a lib.
    You have to built it, and link it in to your project.
    If you don't know how to build a project, and how to link, the task of writing a flight simulator is nothing something you should take on as first thing.
    There is an open source project specially for what you want to do - so maybe you don't need to code anything, just install and configure the ready thing (its Qt based):
    http://www.openpilot.org/
    Last edited by high_flyer; 5th July 2012 at 17:15.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  6. #6
    Join Date
    Jul 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: serial port programming and fancy telemtry control.

    Could you tell me, how to build it and link it? Actually i wanted to make one on my own

  7. #7
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: serial port programming and fancy telemtry control.

    Could you tell me, how to build it and link it?
    No, as this is off topic for this forum.
    This is a Qt forum, not programming basics forum.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  8. #8
    Join Date
    Jul 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: serial port programming and fancy telemtry control.

    I am experienced in c++. What i don't understand is the terminology, perhaps. By linking, do you mean including the path to the header files? I happened to read quite a lot of articles where they use qmake etc on command prompt, I'm guessing that is exclusive to qt, as I've seen nothing of that sort in visual c++, with which i have worked.

  9. #9
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: serial port programming and fancy telemtry control.

    2 hjjayakrishnan,

    You do not know any sort of basis C++ and base process compilation and linking.

    If you want get answer right away - no one will give it to you. Be so kind please understand though, would be in the basic things.
    And Qt has got nothing to do with it - it's just a set of classes. And by the way, VS also has a command line...

    As for the assembly and linking serial libraries - they have a comprehensive step by step documentation.

    PS: For a brief introduction to Qt recommend reading the literature, for example:
    Jasmin Blanchette, Mark Summerfield - C++ GUI Programming with Qt4 (2nd Edition)

  10. #10
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: serial port programming and fancy telemtry control.

    Quote Originally Posted by hjjayakrishnan View Post
    1. I have never worked with qt before, so if you just say do qmake , do compile, etc etc I'm not gonna understand a thing. So i'd appreciate, if you could tell me, step by step, what i should do to get qextserialport working on my qt. I've just downloaded it and extracted it. I've looked at tons of material on google, and none helped me.
    Now, here's the thing... that is exactly how you build QextSerialPort in a step by step fashion for a generic system. Running qmake and make is also the most likely way you will build any Qt application of your own (either manually or by having an IDE do exactly this for you). I suggest you remedy your current inability to follow those directions by informing yourself about the normal process of building a Qt program by reading at least some of the Qt documentation: people wrote the docs for a good reason.

    Here are two tips that might, or might not, be useful, based on guessing what your environment might be:
    • If you have installed the Qt SDK on your Windows box then there is a "Qt Command Prompt" (or similar) option on your Start menu.
    • If you have used the bundle MingW compiler then the "make" command is "mingw32-make"

    Ultimately I do not know if QextSerialPort can be built on Windows with those tools.

    If you want specific answers to specific questions you will have to tell us anything about your environment, which version of QextSerialPort, what compiler, linker, Qt version, platform etc. You will also need to demonstrate that you have actually tried and how that did not work for you. Otherwise we're just guessing with even less information than you have.
    "We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
    If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.

Similar Threads

  1. Replies: 3
    Last Post: 22nd December 2011, 05:39
  2. serial programming help
    By eva2002 in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2010, 11:45
  3. serial port programming
    By sujatashooter in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2008, 15:51
  4. serial port programming in qt
    By sar_van81 in forum Qt Programming
    Replies: 46
    Last Post: 13th June 2007, 12:27
  5. Serial Port
    By b1 in forum Qt Programming
    Replies: 2
    Last Post: 18th January 2007, 02:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.