# JoyNode and QCGroundControl

**URL:** <https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279>\
**Category:** Blue Robotics Software\
**Created:** [April 12, 2016, 2:44am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279 "2016-04-12T02:44:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![szutshi](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@szutshi](https://discuss.bluerobotics.com/u/szutshi)\
**Post date:** [April 12, 2016, 2:44am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/1 "2016-04-12T02:44:32Z")

</div>

Hello,

So I have qcgroundcontrol up and calibrated most of everything except the radio.

However certain parameters are not named the same or are simply non existent such as any of the BTN1\_FUNCTION or any of those. I just dont see them in any category. In addition, things like EK\_ALT\_NOISE didn’t exist either. Everything in the EK subgroup was EK2\_ prefix’d.

Secondly, despite this I tried launching the bluerov\_r1. launch and then the teleop node and anytime I try to use any of the buttons, the teleop node sends an output that :

" Connection to Joystick device lost unexpectedly. Will reopen"

It then reconnects but if any button is pressed it just constantly disconnects and reconnects on press. Any thoughts?

&nbsp;

EDIT: The firmware I compiled from source was the px4-v2-bluerov

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [April 12, 2016, 3:56am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/2 "2016-04-12T03:56:09Z")

</div>

Hi Samir,

It sounds like you might be using a fairly old version of the code. Did you get it from Github? I would recommend trying again with the most recent code in the repository.

You can send all of the joystick control messages directly from QGroundControl instead of ROS. Are you using ROS for any particular reason?

Best,

Rusty

---

<div class="post-metadata">

**Author:** ![szutshi](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@szutshi](https://discuss.bluerobotics.com/u/szutshi)\
**Post date:** [April 12, 2016, 4:15am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/3 "2016-04-12T04:15:54Z")

</div>

We just were looking to integrate with ROS completely if possible. I got my code from this link here: [ardusub/ArduSub at master · bluerobotics/ardusub · GitHub](https://github.com/bluerobotics/ardusub/tree/master/ArduSub)

and followed the install instructions here -\> [http://ardusub.com/developers/](http://ardusub.com/developers/)

Is that all correct?

Thanks for the quick response Rusty!

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [April 12, 2016, 4:20am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/4 "2016-04-12T04:20:40Z")

</div>

Samir,

Okay. That should be correct. How long ago did you download the code? The joystick button configuration has been added in the last two weeks so you might just have to get a fresh copy.

Let me know if that works!

-Rusty

---

<div class="post-metadata">

**Author:** ![szutshi](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@szutshi](https://discuss.bluerobotics.com/u/szutshi)\
**Post date:** [April 12, 2016, 4:42am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/5 "2016-04-12T04:42:12Z")

</div>

Rusty I have gotten the updated version. I just realized the answer to your previous question.

The purpose of using ros is I wanted to be able to run the bluerov\_r1.launch node and test the thrusters. The way I have been currently calibrating using QCGroundcontrol is via the USB link to the pixhawk. But to run the bluerov\_r1.launch…there needs that USB to be connected to the raspi. So I can’t quite control using the joystick here because QCGroundcontrol wont detect the pixhawk if its not connected via USB.

I saw something about a serial connection however I think im missing some steps on what I need to do so I can connect via some other method. Help is appreciated sir!

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [April 12, 2016, 6:54am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/6 "2016-04-12T06:54:45Z")

</div>

Samir,

Okay. Sounds good. The current ArduSub software only accepts pilot input messages, which means you won’t be able to individually control the thrusters.

Also, the ROS code will only work if it has a serial connection to the PixHawk. That can be through USB or through one of the telem ports. How do you have it connected right now?

-Rusty

---

<div class="post-metadata">

**Author:** ![szutshi](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@szutshi](https://discuss.bluerobotics.com/u/szutshi)\
**Post date:** [April 12, 2016, 7:40am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/7 "2016-04-12T07:40:56Z")

</div>

Rusty,

I have it connected through USB currently and all nodes are functional. However the joy node while it connects, constantly has the disconnect problem I posed originally.

-Samir

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [April 13, 2016, 8:21am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/8 "2016-04-13T08:21:04Z")

</div>

Samir,

Okay. I’m not all that familiar with the ROS joystick code. I imagine a lot of it would have to do with the specific joystick and the drivers that your computer is using. ROS most likely uses SDL or a similar abstraction layer to communicate with the joystick.

What joystick are you using?

-Rusty

---

<div class="post-metadata">

**Author:** ![szutshi](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@szutshi](https://discuss.bluerobotics.com/u/szutshi)\
**Post date:** [April 13, 2016, 9:03am UTC](https://discuss.bluerobotics.com/t/joynode-and-qcgroundcontrol/279/9 "2016-04-13T09:03:14Z")

</div>

Rusty,

Im using an f310 with the bluerov\_apps node teleop\_f310. The issue here is that if I run it when the bluerov\_r1 is not running, I can see it publish the correct information on a rostopic echo of /joy. However its when this launch node is launched does it not work as intended.

-Samir
