Giter Site home page Giter Site logo

Comments (11)

mtbsteve avatar mtbsteve commented on July 18, 2024 2

I just tested my install. The px4_controller node works well, it connects through mavros to the drone and then correctly initializes it before switching to GUIDED mode. When in GUIDED, the controller node automatically arms the drone and triggers a takeoff. So far, the code works as it should. See the message output below.
Screenshot from 2019-10-09 15-45-17

from redtail.

mtbsteve avatar mtbsteve commented on July 18, 2024

The original Nvidia Redtail project was developed for the PX4 flight controller firmware.
It will not work with the Arducopter stack.
If you want to run it with Arducopter, you can try the code here:
https://github.com/ArduPilot/redtail
or try my Redtail fork from there.

from redtail.

vxgu86 avatar vxgu86 commented on July 18, 2024

@mtbsteve , thanks for your reply, I went through your fork, that's great and I will keep watching.
but the problem is that, the flushed pixhawk firmware should at least respond to mavros, I have not gone so far to the px4 controler part.

my fireware is pixhawk 2.4.8
flushed with ChibiOS-multirotor-ArduCopter V3.6.11 and Nuttx-multirotor-ArduCopter V3.6.11
neither of them work for
roslaunch mavros apm.launch fcu_url:="/dev/ttyTHS2:921600" gcs_url:="udp://@YOUR_GCS_IP"

but the px4fmu-v2_lpe.px4 works fine

from redtail.

mtbsteve avatar mtbsteve commented on July 18, 2024

As I mentioned above, the original Nvidia redtail code will not work with Arducopter out of the box.
It requirs the px4 code installed on the pixhawk.
For Arducopter, you would need apsync along with mavlink_router installed. The mavros node will then listen to mavlink_router. Also, you would need the changes to the Redtail px4_controller code as included in the git I linked above.

from redtail.

mtbsteve avatar mtbsteve commented on July 18, 2024

So mavros runs well for me along with my Arducopter 3.6.10 setup.
Screenshot from 2019-10-08 19-44-34

from redtail.

vxgu86 avatar vxgu86 commented on July 18, 2024

@mtbsteve the Arducopter code for px4_controller.cpp located
https://github.com/ArduPilot/redtail/blob/master/ros/packages/px4_controller/src/px4_controller.cpp
could not get the apm stacked firmware armed.
for example, the code below:
apm stack did not even have offboard mode, it will stuck here, unless I changed the code.

if (fcu_state_.mode != vehicle_->getOffboardModeName() && (ros::Time::now() - last_request > ros::Duration(5.0)))
{
// Enable OFFBOARD mode
if (setmode_client_.call(offb_setmode) && offb_setmode.response.mode_sent)
{
ROS_INFO("Offboard enabled");
}
last_request = ros::Time::now();
}

from redtail.

mtbsteve avatar mtbsteve commented on July 18, 2024

Arducopter does not have an OFFBOARD mode. The equivalent flight mode is called GUIDED.
This is taken care in the Arducopter code of Redtail, see here:
https://github.com/mtbsteve/redtail/blob/4d5602934e6eaaa8b7b637807b41e73c93cbe3cc/ros/packages/px4_controller/include/px4_controller/px4_controller.h#L118

from redtail.

vxgu86 avatar vxgu86 commented on July 18, 2024

thanks bro @mtbsteve .
I has not install the async nor the mavlink_router.
I will test the Arducopter version, thanks.

from redtail.

vxgu86 avatar vxgu86 commented on July 18, 2024

by the way, any changes have you done in your forkcompared to https://github.com/ArduPilot/redtail?

from redtail.

mtbsteve avatar mtbsteve commented on July 18, 2024

Plenty. Just check the commit log.
Btw, if you want to run apsync with Jetpack 4.2.x, follow these instructions:
https://github.com/mtbsteve/companion/blob/next-tx2/Nvidia_JTX2_JP42/Ubuntu/1_create_base_image_tx2_JP42.txt
The official release doesnโ€™t support Jetpack 4.2

from redtail.

vxgu86 avatar vxgu86 commented on July 18, 2024

thanks, I will dig into the urls and learn about it.
but funny that I managed to get the original redtail load up with ArduCopter fireware, and stopped with offboard mode.
I will share time learn about the arducopter throughly, thanks

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.