beriev

  • *
  • 11
dude,controlled drone with a joystick or control pad in GCS?
« on: January 19, 2016, 02:02:10 pm »
Hi,I have the idea of controlling a drone with a joystick or control pad, some people use arduino and a receiver to get it, my question is whether the GCS you could do or is prepared to do so from a PC or notebook through the uSB port or in my case the game port, I think you could do through OPLINK not sure, is this possible?

thank you.

Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #1 on: January 19, 2016, 08:42:14 pm »
I have been searching through the LP Doc's and on the net with the same question. There is not a lot of info on OPLink and what capabilities it has on the Tx side. There is only few Transmitters that you can connect it to and having the telemetry and control out of one box simplifies things(Laptop+BT game pad). My only worry is Range vs. a 5.8Mhz Tx

beriev

  • *
  • 11
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #2 on: January 19, 2016, 11:18:49 pm »
I wanted to do something like this http://www.ianjohnston.com/index.php/projects/56-project-020-rc-joystick-tx-v3-usb-version , but instead of using Arduino, using a laptop with software and a transmitter like this http://www.hobbyking.com/hobbyking/store/__7380__Corona_2_4Ghz_JR_Module_Rx_V2_DSSS_.html , or use the transmitter itself

hwh

  • *
  • 1018
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #3 on: January 20, 2016, 01:03:10 am »
I have been searching through the LP Doc's and on the net with the same question. There is not a lot of info on OPLink and what capabilities it has on the Tx side. There is only few Transmitters that you can connect it to and having the telemetry and control out of one box simplifies things(Laptop+BT game pad). My only worry is Range vs. a 5.8Mhz Tx

I'm not sure what other information you're looking for.  To use it as a transmitter you hook up ground, power, and a PPM source.  You should be able to hook it up to any transmitter (meaning the device with joysticks and switches) that outputs a standard RC PPM signal. http://opwiki.readthedocs.org/en/latest/user_manual/oplink/control.html tells the pinout and how to hook it to a jr module connector and several trainer ports on transmitters.

hwh

  • *
  • 1018
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #4 on: January 20, 2016, 01:23:51 am »
I wanted to do something like this http://www.ianjohnston.com/index.php/projects/56-project-020-rc-joystick-tx-v3-usb-version , but instead of using Arduino, using a laptop with software and a transmitter like this http://www.hobbyking.com/hobbyking/store/__7380__Corona_2_4Ghz_JR_Module_Rx_V2_DSSS_.html , or use the transmitter itself

Using a general purpose computer like a laptop to generate a critically timed data stream isn't something I'd recommend.  There are too many other things going on, screen updates, reading the keyboard, servicing wifi, and many more.  If one of them occured while say the throttle pulse was being generated the pulse width might end up too wide and command 100% throttle instead of the 25% you meant. There's really no advantage to using the laptop to read the joystick and generate the transmit stream. Arduinos are not very expensive and I'd do what the person in your first link did and hook the joystick to it.

You could still hook an oplink to your laptop and use GCS to monitor the flight.  You could even hook the Arduino to the other oplink port and use it as the transmitter instead of the one in your second link if you wanted to.

Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #5 on: January 20, 2016, 03:59:46 am »
I've entered a tracking to do this and document the setup.  I personally think we really should allow the user to attach a dual joystick to the GCS and use the GCS/TelemetryOpLink to control the model, albeit with more lag than a normal RC transmitter.

It currently doesn't have an assigned developer, so it may be a while.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #6 on: January 22, 2016, 09:13:26 pm »
Done, tested and working.

https://librepilot.atlassian.net/wiki/display/LPDOC/Control+vehicle+using+joystick

Need OPLink telemetry with vehicle.


beriev

  • *
  • 11
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #7 on: January 23, 2016, 05:42:37 am »
excellent, someone to raise the salary to the people who work for the community librepilot,thanks  very much Laurent by the job.

About what the lag, as is possible with an Arduino you can do, and with a notebook supposedly has more processing power may have problems with lag, the transmission module in theory is similar to installed on the RC transmitter,in these videos is not appreciated lag.


« Last Edit: January 23, 2016, 05:53:11 am by beriev »

Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #8 on: January 23, 2016, 05:58:51 am »
Great job Laurent!  Your instructions are always full of helpful pictures.

I'm a little surprised that UAVO metadata didn't need to be tweaked to reduce the lag.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #9 on: January 23, 2016, 11:10:33 am »
The GCS update period is currently set to 100ms: Gcs >> remote vehicle side.
When controller is on the Tx change from 12bytes/s to something more high :)

I didn't notice any latency for now.
Need to do more tests today with day light.

Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #10 on: January 25, 2016, 07:16:34 am »
That's awesome Laurent!
I'm a ways from trying this, but I'm looking for all my options. I have a Spectrum Tx and their trainer port is just a double binding with another Spectrum Tx. So as near as I can figure I'd need a DSM2 Rx with a USB output to use it with OPlink

Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #11 on: January 26, 2016, 12:19:01 am »
I've spent the last month playing around with trying to set this up in my free time and I finally accomplished it about a week and a half ago.  Then today I was just wasting some time reading the forums and came across this.  Turns out I came up with the exact same setup doing trial and error.  Only difference is that I didn't disable rc input because I like to be able to fly from my controller without having to go into the settings and changing things when going from joystick controlled flight to controller controlled flight.

JohnW

  • *
  • 7
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #12 on: January 27, 2016, 05:34:14 am »
Hi, I've been flying a 250 quad with the CC3D for a few months and used the original OP GCS.
I have switched to LP GCS and was wondering about using the GCS to send control commands to the CC3D.
I just joined the forum and see that it is possible to do this using OPLink.
I wanted to take this a step further (backwards??) and ask the question, "Can the GCS control the CC3D via hardwired serial link or USB?"
I wanted to use a joystick or game controller to control the CC3D outputs with the board direct wired to a laptop.
Johnw

f5soh

  • *****
  • 4572
    • LibrePilot
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #13 on: January 27, 2016, 07:27:49 am »
Hi John,

You can do the same with wire/usb link.


JohnW

  • *
  • 7
Re: dude,controlled drone with a joystick or control pad in GCS?
« Reply #14 on: January 27, 2016, 08:33:55 am »
Great, I'll give it try.