Quantcast
Channel: ArduPilot Discourse - Latest topics
Viewing all 46361 articles
Browse latest View live

SITL Generic telemetry

$
0
0

@doaaron wrote:

Hi all,

this is my first post, and I’m just starting to learn about Ardupilot and Mission Planner, and drones in general. Hopefully I’m posting to the right forum/topic.

I’m trying to run Ardupilot with SITL on one Ubuntu PC, and connect to it from Mission Planner on another PC. I am able to get everything working (connect between the PCs and run a mission) over a WiFi connection (TCP/IP), but now I want to connect over a generic serial connection. On the PC running Ardupilot SITL I have my serial coming in from /dev/ttyUSB1 (115200, 8 databits, 1 stopbit, no parity) and on my PC running Mission Planner, I have created a virtual serial port at /dev/pts/2. I tested the serial connection between the PCs just using “cat /dev/pts2” and “echo “hi” > /dev/ttyUSB1” and vice versa, and everything works fine.

However, I’m not sure how to get Mission Planner to connect to ardupilot over UART. I have tried running

sim_vehicle.py -A “uartC=uart:/dev/ttyUSB1,115200” --no-mavproxy

and then in Mission Planner, I changed the communication serial port to /dev/pts/2. However, I’m not able to get any connection. It isn’t clear in the Mission Planner GUI the correct syntax for the serial port naming (for example should it be pts/2 or /dev/pts/2). Also with sim_vehicle, I’m not sure how to set the serial port configuration with number of data/stop bits etc. I’m also not sure whether I’m using the correct syntax when I call sim_vehicle, or whether what I’m trying to do is even achievable. Any hints would be more than welcome.

mp1

thanks,
Aaron

Posts: 1

Participants: 1

Read full topic


20-Foot Wingspan Quadplane -- Successful First Flight!

$
0
0

@Illini_Rob wrote:

After months of prep, I finally got the old Gooney Bird in the air!
Blog entry here:

Posts: 1

Participants: 1

Read full topic

Mission download timeout with Dronekit-Python

$
0
0

@eminakgn wrote:

I am having timeout issiues with dronekit. Here is the related issue on github. Are there known issues or any incompatibility with mission protocol in Plane 3.9?

Posts: 1

Participants: 1

Read full topic

Lua scripting using separate onboard DataFlash Chip

$
0
0

@Ubair wrote:

I have a flight controller with 2MB internal flash with a separate DataFlash chip available onboard, i want to know is there any way to store and run lua script directly from onboard/external DataFlash chip and not from SD Card?

Recently I got to know about @ROMFS filesystem feature of storing lua script directly on internal flash, so similar to that how can i store and run same lua script from separate onboard DataFlash chip ?

If there’s any way to store and run lua script directly from separate onboard DataFlash chip then what will be the limitations of running lua scripts like size of lua script or size of a text/log file which lua script can read and execute during runtime ?

Lastly, with the same context as mentioned above if i use a pixhawk with 2MB internal flash and lua scripts stored on SD card then again what will be limitations of lua scripting ?

Posts: 1

Participants: 1

Read full topic

Pixhawk cube black schematic diagram

$
0
0

@Sampath_kumar_Chirut wrote:

Dear all
Am planning to design pixhawk .so i need pixhawk cube hardware schematic diagram. Can u share the document of schematic diagram
That might be help me build the pixhawk

Posts: 1

Participants: 1

Read full topic

Pixhawk 2.4.6 keeps losing compass calibration

$
0
0

@muzzlightyear wrote:

For the second time this week, I went to arm my Pixhawk but it wouldn’t.

Hooked it up to Mission Planner, which informed me that the compass isn’t calibrated.

But it IS!

Last time I got this message, I recalibrated the compass and all was good.

Until now… and it’s telling me I need to calibrate.

Again!

Anybody have any idea why is it doing this? Is there an onboard battery I need to replace?

It’s a pain in the derrière to have to keep doing this as I have no option but to do it with USB cable connected.

Posts: 1

Participants: 1

Read full topic

Abnormal RCOUT values

CG changes with fuel consumption

$
0
0

@TheGS wrote:

Hi!
We are building a hybrid multi-rotor which has battery and fuel engine.
the fuel tank is a bit large and heavy and the center of gravity moves while fuel consumption.
I wanna ask if the pixhawk can handle this CG movement during the flight.
if it can’t, what should I do?

Posts: 1

Participants: 1

Read full topic


Fine copter tuning help 8inch

$
0
0

@Pavel_Lobach wrote:

Hello,

I recorded one of my flight, I am really not sure if the tuning is fine or not. Here is the video:

I am pretty happy to see how it works, but I think that the tuning is not best, sometimes we see the pikes in pitch and probably it can do more smoothly. But I am not sure where to see and what to check for perfect tuning. Maybe some filters need to be adjusted or pids.

Frame 8inch with 9inch props 9050. I also made the one-axis gimbal using 9g servo. Any suggestions are appreciated. If here are any professionals in fine tuning I would be happy to discuss. Thanks.

Posts: 1

Participants: 1

Read full topic

Send MAVLink Packet with C# NuGet

$
0
0

@WAT05 wrote:

Hi everyone,

I would like to send commands to my drone and I tried to do so using the C# MAVLink NuGet with the following code as a test :


MAVLink.MavlinkParse mp = new MAVLink.MavlinkParse();

var buffer = mp.GenerateMAVLinkPacket20(MAVLink.MAVLINK_MSG_ID.COMMAND_INT,
                            new MAVLink.mavlink_command_int_t()
                            {
                                command = 511,
                                param1 = MAVLink.MAVLINK_MSG_ID.SCALED_IMU.GetHashCode(),
                                param2 = 100000,
                                target_system = 0
                            }, false, 255, 1, -1);

port.Write(buffer, 0, buffer.Length);

The command is a MAV_CMD_SET_MESSAGE_INTERVAL (511) supposed to ask my drone to send me a SCALED_IMU(#26) message at an interval of 1 second (100000 us).

The thing is, even when I send this command multiple times, I do not receive any SCALED_IMU (#26) message in return.

I also tried with the GenerateMAVLinkPacket10 method and with MAVLink.mavlink_command_long_t() instead, but still nothing.

Is there anyone to help me on this ?

Posts: 1

Participants: 1

Read full topic

Https://ardupilot.org/plane/docs/common-multi-vehicle-flying.html

Implement APM follow me on android smartphone

$
0
0

@DKTempest wrote:

First of all I am sorry that my native language is not English.
I am using APM2.8 and it is equipped with 7M GPS.
I am using Galaxy Note 9 and I would like to implement the mod follow me through mission planner.
I used QGC and TOWER as GCS smartphone applications, but I couldn’t find a way to apply Follow me mode to APM. And my laptop wasn’t equipped with GPS.
I ultimately need to follow me through the smartphone’s GPS.
PLZ HELP ME 4 THX

Posts: 1

Participants: 1

Read full topic

Capacitor Battery Bank

$
0
0

@Fabio_Ferreira wrote:

Hello everyone,

I’m developing a battery bank using FM capacitors

Goals:

  1. The main objective is to be able to use it in projects where battery recharging happens quickly.

  2. I want to build a power system for my Multirotor using cables ( tethering). Where it will have a UPS with a battery bank like that contingency being fed constantly.

I thank you all for sending criticism and suggestions

Best Regards

Fabio

http://www.samwh

a.com/electric/product/list_pdf1/DB.pdf

Posts: 4

Participants: 3

Read full topic

CubeBlack and CubePurple failed to Boot

$
0
0

@Mallikarjun_SE wrote:

Hey @rmackay9 @proficnc
Today I was flying CubeBlack on couple of aircrafts and when I connect power, Cube got stuck at boot. Buzzer just went “Beep” and cube failed to boot. I have experienced this before in AC3.6.12 before and it was very rare. Today it happened couple of times in an hour. These cubes are currently running AC4.0.3.
And I was testing latest beta on CubePurple. It happened once with Purple too.

Posts: 2

Participants: 2

Read full topic

Mission Planner FW upload issue to F765-Wing

$
0
0

@RoMe82 wrote:

Hi,
after trying various types of Mission Planner install, driver setups and cables I gave up.
Mission Planer is running version “latest” on W10 (all updates) on Thinkpad W530.
My FC is Matek F765 as I want to use it on a traditional helicopter. The 765 starts up on plugin, creates STM Virtual Com13, sequences green and blue LED twice (don’t know how many blinks as it is very fast) and the shows red steady and blue blinking 1Hz. On Mission Planner I have tried normal install, that leads to a request to disconnet and reconnect. Then it comes to a scan of ports and finally to a “No response from board”. When I press the connect button it starts mavlink and turns the button green. Then it says “mavlink connectiung” and then “trying to connect” with a final timeout.
When I installed INAV (which I can’t use) it installs, loads firmware and is working in configuration mode.
Did I miss anything somewhere? When I install from “All options” I get an issue with the hex files. the apj file leads to the missing response issue. I installed Zadic, ImpulseRC Silabs and STM32-Virtula drivers without any change.
What am I doing wrong or missing?
Thanks

Posts: 3

Participants: 2

Read full topic


How to create a custom motor mixer? - OctoX variant

$
0
0

@DroneUnit wrote:

Hi All,

I am hoping someone can help me. I looking to create/use a custom Ardu OctoX mixer that mimics DJI’s Octo layout so I can easily switch back and forth between controllers.

This is the default OctoV layout in ArduPilot:

This is what I need the custom motor mixer to do:
DJI Octo

How would I go about doing this?

Thanks!

Posts: 7

Participants: 2

Read full topic

[SOLVED] MAV> link 1 down when attempting to communicate with Raspberry Pi

$
0
0

@jmatt1998 wrote:

EDIT: Well it turns out I made a dumb mistake that I glossed over multiple times. I had the TX and RX pins connected to each other, fixing this fixed the issue. I figured I’ll leave this up just in case anyone else does the same thing.

I’m attempting to establish communication between a RPi 3B and Pixhawk 1. I followed the steps from this documentation page:

https://ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html

I followed the manual setup, using ssh to connect to the Pi and setting up the connection using the terminal. When I attempt to run MAVProxy I get the following message “MAV> link 1 down.”

Posts: 1

Participants: 1

Read full topic

Cube PWM outputs dying?

$
0
0

@Asher wrote:

I am now looking at what appears to be the second pixhawk cube on Copter 4.0+ that appears to have motor outputs dying. In the field, after pressing the hardware safety switch I get 3-5 ESCs on my hex to properly obtain a signal while the other ESCs remain beeping.

This is after the copter flew perfectly just last week. Not a single issue. I did not change any parameters or hardware, simply packed the copter up, let it sit for a week then took it back out.

So, taking the pixhawk out and putting on the bench with a receiver test shows that 3 of the PWM outputs aren’t putting out anything while each of the others matches the 1000us duty cycle displayed in mission planner. Mission planner shows all 6 motor outputs as having the same 1000us output.

These are T Motor Flame 60A ESCs with only the signal and ground wire running to each ESC.

Have any of you experienced a PWM failure like this before?

Posts: 4

Participants: 2

Read full topic

Z-Axis Vibration Issues

$
0
0

@Nick_DeGroote wrote:

Hello,

I have encountered a lot of trouble recently with high vibrations, specifically with the z-axis in the accelerometer. I have observed this with several different vehicles with propellers ranging in size from 15 inches to 29 inches. I’d like to focus this post on a Hexacopter build with the following:

Frame and Class: Hexa X
Flight Controller: Pixhawk 2.1 Cube
Motors: TMotor Navigator MN801-S
Propellers: TMotor 24x7.2
ESC: TMotor Alpha 80
Takeoff Weight: 18.5 kg

The log file shows high z-axis vibes, going above the maximum of 30m/s/s recommended in the Wiki. The more concerning part however is the clipping in the z-axis, as this is WAY, WAY higher than it should be (at zero). There is also a little bit of clipping in the x and y axis on this flight, but the vibes are well within the acceptable level. The flight controller is attached to the vehicle with two pieces of Moongel and secured in place with CA glue.

I have been through the vibration damping guide many times and have read from other users about good results from Moongel. Other vibration damping techniques have not yet been tested on the vehicle because the general advice seems to be that vibration levels this high are caused by an underlying mechanical issue and this should be addressed rather than simply attempting to mask them.
The primary suggestions for fixing these underlying issues seem to be balancing your propellers and ensuring that the frame is sufficiently stiff. I can promise that the propellers are correctly balanced and that the frame cannot conceivably made any stiffer. The plates are made from 3 mm carbon fiber and the arms are made from 30 mm diameter pullbraided carbon fiber tubing.

I have spent many, many hours trying to figure out what could possibly be the issue here, and on the other platforms I have investigated. Quite frankly I’m out of ideas, so I figured I would reach out here. Some images of the vehicle are included below. If anyone sees anything about the construction of the vehicle that could be causing this, I would greatly appreciate it.

Additional Notes:

  1. The default PID gains are used for this flight. I wanted to address the vibrations before moving on to tuning.
  2. The batteries are not strapped in for the photo, but are in flight
  3. I realize this is boarding on a hardware post, but still felt this fit better here


Log File: https://drive.google.com/file/d/1Q7X0teSxHYxbCnqxE6mWqneIQcjDAfms/view?usp=sharing

Posts: 5

Participants: 2

Read full topic

Question about reference frames and an error in building the code

$
0
0

@skybound wrote:

Hello!
My question: Why is it that vehicle obstacles have an inertial frame of North, East, Down, but the copter/ownship has a frame of North, East, Up?

My error: I tried to compile the code using SITL because I don’t own any hardware, but I get this error message in cygwin:

ap_library: AP_BattMonitor not found

I cloned the code from the repository verbatim, and I’m not sure why this would not work. Any ideas on how to fix this?

Thanks,
Jimmy

Posts: 1

Participants: 1

Read full topic

Viewing all 46361 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>