Giter VIP home page Giter VIP logo

Comments (4)

Alexey-Kamenev avatar Alexey-Kamenev commented on May 31, 2024

Hello,
The joystick is currently required as it provides somewhat simplified navigation functionality such as moving forward and turning using one stick (right). You can use left stick to change altitude or rotate. Joystick's buttons are used to enable/disable some of the functionality like DNN navigation (buttons A/B). The joystick runs in parallel with transmitter. The transmitter itself is used for initial takeoff and switching to OFFBOARD mode. Transmitter also has a kill switch which allows to disable vehicle motors in case of emergency.

As for implementation: ROS joy node publishes joystick messages which are processed by our px4_controller. The commands from the joystick are fused with our control commands, with joystick always takes precedence over DNN commands so you can override/correct DNN behavior if needed. The controller then publishes resulting command (pose) via MAVROS.
Refer to px4_controller code for more information.

There is a minor inconvenience in such setup as you need at least 2 people: one with transmitter and another with joystick. We found that such setup provides sufficient level of safety during our experiments.

from redtail.

xuming-shanghai avatar xuming-shanghai commented on May 31, 2024

Hi Alexey,
Thanks for the quick response.
It looks joy stick is a auxiliary device once DNN control the attitude is not expected.
so, my understanding is it's pixhawk its own design logical, if enter offboard mode, it cannot
accept roll/pitch/yaw/ pwm from transmitter to correct/override DNN behavior. That need user purchase one more device.

from redtail.

Alexey-Kamenev avatar Alexey-Kamenev commented on May 31, 2024

That's correct - once the offboard mode enabled, Pixhawk will ignore movement commands from the transmitter. However, Kill switch as well as Offboard switch will always work regardless of offboard mode. This provides a good safety mechanism: the person with transmitter can always take control back by turning off Offboard mode or using Kill switch if needed. You can probably change the controller code to listen to commands from the transmitter (RC channels) but we haven't explored this.

from redtail.

xuming-shanghai avatar xuming-shanghai commented on May 31, 2024

Thanks, Alexey. I will close this topic.

from redtail.

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.