Shop OBEX P1 Docs P2 Docs Learn Events
Controlling quadrover via laptop problem — Parallax Forums

Controlling quadrover via laptop problem

skelectronskelectron Posts: 5
edited 2009-12-28 09:25 in Propeller 1
Hi everyone,

Currently I am doing a project to control Quadrover by using two laptop connected wirelessly,
I am using MFC C++ to send message between two, I have some question..
1. Is there any way to link my c++ code with the quadrover?
2. I was trying to use Imagecraft's ICCv7, and I'm not sure if this is the best way to do it, if it is, is there any reference that I can check on?
3. Is there anyone who have done this project before?I've done some googling and I don't get any information from it....

Thank you in advance, nice to meet you all...[noparse]:)[/noparse]

Comments

  • David CarrierDavid Carrier Posts: 294
    edited 2009-12-23 19:13
    skelectron,
    To use the QuadRover with MFC C++ code, or any code running on the computer, you would need to establish a serial connection between the two, and run software on both devices to communicate with each other. There is a link on the QuadRover Product page for the QuadRover Example Code Version 1.0 that controls the QuadRover. The "QuadRoverControl_v1.0" object has three simple functions: SetVelocity, SetTurn, and SetBrake that allow you to control the QuadRover by passing signed 16-bit values to control the speed, direction and brakes.

    I highly recommend that you use the example code to control the QuadRover, because it has many protections built in to prevent your code from controlling the QuadRover in a way that can cause damage or premature wear. (e.g. shifting into reverse at full speed, or accelerating with the brakes on.) You could still port the Spin code to C, it is very lightweight and shouldn't take too long to port, but I would recommend that you familiarize yourself with it in Spin first.

    The "QuadRoverRadioNavigation_v1.0" program is a good example to look at to see how to use the "QuadRoverControl_v1.0" object.

    -- David Carrier
  • skelectronskelectron Posts: 5
    edited 2009-12-25 04:02
    Thank you for the quick reply, I will post here again if I have other problems.

    Cheers
  • skelectronskelectron Posts: 5
    edited 2009-12-28 09:25
    Hi everyone,
    actually I have done some coding using spin for controlling the quadrover,
    as David said, I am using QuadroverControl object. But, when I ran it, the servo doesn't seems to work...

    I think the problem was from the auxiliary I/O connector, currently the aux I/O connector is connect to the R/C receiver. And I have no idea how should I setup the connector so it could receive the control message from my laptop. Is there any reference about how to setup the I/O connection?Thank you
Sign In or Register to comment.