mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
Ground/UAVControl: Removed some debuggings and a qFatal in SDLGamepad for no
joystick found. Changed gadget name to Controller to remove redundant UAV. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1804 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
f2d5db60da
commit
25314ab92a
@ -48,8 +48,6 @@ bool SDLGamepad::init()
|
||||
if(SDL_Init(SDL_INIT_JOYSTICK) < 0)
|
||||
return false;
|
||||
|
||||
qDebug("SDL initzialized!");
|
||||
|
||||
if(SDL_NumJoysticks() > 0)
|
||||
{
|
||||
emit gamepads(SDL_NumJoysticks());
|
||||
@ -62,7 +60,6 @@ bool SDLGamepad::init()
|
||||
}
|
||||
else
|
||||
{
|
||||
qFatal("No gamepads present!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -52,8 +52,6 @@ GCSControlGadget::GCSControlGadget(QString classId, GCSControlGadgetWidget *widg
|
||||
connect(&sdlGamepad,SIGNAL(buttonState(ButtonNumber,bool)),this,SLOT(buttonState(ButtonNumber,bool)));
|
||||
connect(&sdlGamepad,SIGNAL(axesValues(QListInt16)),this,SLOT(axesValues(QListInt16)));
|
||||
}
|
||||
qDebug() << "Axes: " << sdlGamepad.getAxes() << " ButtonsL " << sdlGamepad.getButtons();
|
||||
|
||||
}
|
||||
|
||||
GCSControlGadget::~GCSControlGadget()
|
||||
@ -94,7 +92,6 @@ void GCSControlGadget::sticksChangedLocally(double leftX, double leftY, double r
|
||||
|
||||
void GCSControlGadget::gamepads(quint8 count)
|
||||
{
|
||||
qDebug() << count << " gamepads found";
|
||||
sdlGamepad.setGamepad(0);
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
GCSControlGadgetFactory::GCSControlGadgetFactory(QObject *parent) :
|
||||
IUAVGadgetFactory(QString("GCSControlGadget"),
|
||||
tr("UAV Control"),
|
||||
tr("Controller"),
|
||||
parent)
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user