Giter Club home page Giter Club logo

Comments (5)

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

Hi @nilay994,

Joypads that are not the Logitech F310 and Xbox One controller are not officially supported. However, I think that you are on the right track. To activate controller control, the "override" button must be held on the controller. This button mapping is defined in the "keys" input mapping in the yaml. If the controller inputs are mapped correctly, you should see activity on the /uav/input/rateThrust channel when the controller override is enabled.

Best,
-Winter

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

@nilay994, are you still having this issue?

from flightgoggles.

nilay994 avatar nilay994 commented on July 24, 2024

@Winter-Guerra , No I haven't gotten it to work yet. I don't understand the difference between the fields buttons and keys in the example_input.yaml. I did try to map the override field under keys and buttons of the yaml to the joystick buttons/keys - but without any luck. I see that the /control_nodes/joy is publishing correctly but nothing is published on /uav/input/rateThrust.

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

Hi @nilay994,

After closer inspection, it looks like you need to change the override parameter in the joy_buttons param and maybe the axis mappings in the joy_axes param. You can find these mappings experimentally by looking at the /control_nodes/joy topic.

keys refers to remaps for the keyboard controller and should not be uncommented. I'm terribly sorry about the naming confusion.

The default values and structure of the joystick params can be found in lines 23-51 of this file. I'd advise only defining values for joy_buttons and joy_axes in your remapping file for simplicity. If any of your axes are flipped, I'd then advise defining axis_scales values to fix the flipped axes.

Best of luck!
-Winter

from flightgoggles.

nilay994 avatar nilay994 commented on July 24, 2024

hi @Winter-Guerra , thank you for your reply. I still haven't gotten it to work. I tried it with a PS3 controller and FrSky controller. For now, I use the keyboard. I'll close the issue, since I see that others were successful in configuring it. I will comment on the closed issue in case I realize the mistake or in case I still feel stuck.

from flightgoggles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.