Unable to install QtSixA,
Forums:
I've been trying to install the QtSixA on a RPi3 following the PiBorg guidelines. I get to the "Make" command after downloading and creating the folder. I change to the folder, type Make, and when it runs it list several errors which all seem to involve bluetooth.ccp. Most of the errors have th phrase' "*" not declared in this scope' with "*" representing some command such as 'execve' or 'close'. The last statement is Makefile:10: recipe for target 'sixad_bins' failed.
I've tested the controller and confirmed that it is pairing with RPi.
Any guideance on what I'm doing wrong?
Thank you for your help,
Brian
piborg
Tue, 05/09/2017 - 19:59
Permalink
QtSixA is no longer needed
If you have a recent version of Raspbian installed then QtSixA (sixad) is no longer needed. In fact we found that it does not seem to work very well with Jessie or Jessie Lite anyway.
If you have full Jessie installed we would recommend following our recent blog post instead: How to connect a PS3 remote to the new Raspberry Pi Zero W. Do not be put off from the title, this method will work with the Raspberry Pi 3 in exactly the same way as with the Pi Zero W. It should also work with USB Bluetooth dongles, but we have not tested it.
If you are running Jessie Lite (no GUI) or you have an older version which does not work as explained in the blog post then you want to follow the instructions here instead: PlayStation 3 controller help sheet. Follow the section for "Setup for Jessie and Jessie Lite" and you should be able to get the controller working with the standard Bluetooth software.
brianmcm
Tue, 05/09/2017 - 22:59
Permalink
Tried the guide for the RPI Zero with weird results
I followed the guide that you suggested using the steps for RPi Zero, but with some weird results.
As I mentioned earlier using the "jstest" for js0 I get the read-out shown. The controller when I press the PS button, all lights flash for a moment and then one LED is lit. However when I attempt to connect it using the bluetooth connection I'm not successful. Every attempt is "waiting for pairing request-failed" With the one LED light already lit, trying to get it to pair with the pi is unsuccessful. Also when I run ~sixpair is says no controller found on USB. I also checked with hciconfig and for the BR/EDR Bus is said UART. Any thoughts?
Thank you for your help!!
piborg
Wed, 05/10/2017 - 11:38
Permalink
Already paired :)
I think I understand now, it sounds like the controller is already properly paired with the Raspberry Pi.
If you already have
jstest /dev/input/js0
working then you should be able to start using the PS3 controller without doing anything more :) The reason the pairing is failing is because it does not try and pair with a device that is already paired.Were you having any other trouble with the PS3 controller, or is it all working fine if you try and use it as a joystick?
brianmcm
Wed, 05/10/2017 - 17:51
Permalink
Reading the Controller in Python
Thank you for clearing that up. When I did some websearch on using the PS3 in Python code the examples found called for importing either Triangula or Sixad to read the controller. Thus, the search on pairing the Controller question. With my current setup do you reccommend Pygame for reading the Controller..
Thank you again for your help.
piborg
Wed, 05/10/2017 - 18:25
Permalink
Joystick inputs from Python
We use Pygame in our examples and it works quite well. See our PicoBorg Reverse - Examples page and scroll down to the
pbrJoystick.py
code for an example of using Pygame with the PS3 controller.brianmcm
Thu, 05/11/2017 - 13:48
Permalink
Thank You Very Much!!
Wow, I wish I had discovered your website sooner:) A wealth of information!
Thank you very much for helping me on this!! Your site is definitely now part of my Favorites list.
Brian