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

Moving to pixhawk/ardupilot - hardware kit suggestions

$
0
0

Hi Everyone,

So look to do my first drone that has navigation, waypoint etc capabilities. Have pretty much decided on pixhawk as the best option at this point - either 6x or 6c.

I would prefer to use some kind of hardware kit (or at least a common ‘build’ where lots of documentation already exists) as I have been told that ardupilot can be complex to setup. I found the Holybro QAV250 which would be perfect if it was a little bit larger. I don’t really like the way their other drone frames(S500, X500) are set up (battery placement etc) so I was wondering if anyone knew of any other Pixhawk kits out there that have a frame more like a 7 inch QAV-S 2?

Thanks in advance

2 posts - 2 participants

Read full topic


Some thoughts about new features for Copter

$
0
0

Yesterday I finally made a few real world test flights in the mountains (midrange, midaltitude, 12…14 km at 2000 … 3000 m).

I discovered that there is really no good mode for flying longer range… Loiter mode sucks because you have to push the stick forward all the time, and it is not very precise, i.e. finding the best speed is very difficult. Also loiter mode is inefficient, because if you release the stick pressure, it brakes and looses effciency.

I ended up flying Acro mode all the time, because you set it up, and do not have to touch the controls. However, there is one problem - the throttle, it was very delicate, you lower it by one or two notches, and the copter goes down 2…3 m/s, you move it up, and it goes up. Also, I had a lot of thermals and downdrafts, so that you have to play with the throttle all the time.

Thinking about it, I feel there is a need for something similar to ACRO mode with Altitude control, i.e. you would set the attitude with the roll/pitch stick, but the throttle would maintain altitude like Alt Hold mode.

Acro Mode is very useful for longer range flights, especially if you have a crosswind (I had it between 25 and 40 km/h), as it allows to compensate for it by just rolling against it.

Another thing which immediately jumped into my mind is Efficiency Optimizer

The efficiency of the copter (energy per distance) depends on speed. Most copters are more efficient at moderate speeds than at hover, in my case that is about 15 % at about 30 km/h. From there the efficiency begins to drop, and from a certain speeed upwards, in my case above 70 km/h, it becomes really bad.

One cool feature would be speed control which would try to optimize automatically the speed so as to obtain best range. It is not as simple as selecting the best airspeed, because you have to consider the wind speed and direction.

The idea could be that the AP would try in a certain mode adjust the speed (copter inclination at constant altitud) so as to obtain the best efficiency per ground distance covered. It would constantly try to make small adjustments to speed and than check the efficiency, and based on that make again adjustments.

If the climb or descent rate is constant, that optimization would still work

Line of Sight Loss Warning Another interesting option is to implement a warning when the copter will fly behind mountain. Basically, you have to draw a line between the copter and home point, and check the ground elevation along that line using the terrain data. Once the ground elevation comes close to a preset value, a warning is issued that the copter is about to loose the Line of Sight.

I have implemented such a feature on my Ground Station for planes a long time ago, but it runs on Raspberry Pi and Python, so I am not sure if the STM processors would have enough spare computation power to do something like this on the FC side.

1 post - 1 participant

Read full topic

Changing vehicle angle_max and rates mid-flight?

$
0
0

Hello,

I am wondering if there is a possible solution to this. My vehicle is required to inside of buildings in tight spaces where speed is not critical, but also sometimes fly outside where speed is critical. Short of creating a new flight mode, is it possible to change parameters such as angle_max from a Lua script?

Always learning. Thank you.

1 post - 1 participant

Read full topic

How to get all four motors to spin the same at arming

$
0
0

Howdy all! I have an Arris m900. I built it from a kit. It came with Eagle Power motors and Fly Color 40A ESCs. I’m using a Pichawk 6c flashed with the latest Arducopter.

In order to get these ESCs to work I have to use OneShot as the ESC protocol. When I do a motor test, it takes 15% throttle input on the motor test page to get them to turn. I’m not sure if that’s an issue or not. I’ve read that it shouldn’t take more than 4-5%. The drone does fly. When I arm it, however, two of the motors start spinning and the other two sit idle. When I give it a little throttle, then the other two will spin up. Obviously they all must get somewhat synced or it wouldn’t fly. With other quads I’ve built, all four motors spin nicely after arming. I’m wondering if I need to calibrate the ESCs. I don’t know if they support BL Heli. I doubt they support AM32. Any ideas on how to calibrate them? I really can’t do the raise the throttle to full and plug the battery thing in like I can on my simple single ESC planes and such. I’ve tried to read the ArduPilot literature but I really don’t feel like I was finding anything that could help me with these ESCs. I’m even wondering if I should get four new ESCs. I’m f I go that route, any suggestions on a good one that is easy to use that would be a good replacement for the Fly Color 40A?

5 posts - 2 participants

Read full topic

Bitmask options on RC_OPTIONS when using ELRS and YAAPU

$
0
0

I’d like to double check these options - as I haven’t kept up with the last couple of release notes.

I’m using ELRS with and Yaapu. I think I have the RC_OPTIONS bitmask set properly, but there’s one option I don’t understand: “Annotate CRSF flight mode with * on Disarm”


Can someone please explain what this bitmask option does? And take please take a quick look at my other bitmask options for correctness?

Many thanks!

1 post - 1 participant

Read full topic

Marine vehicle data

$
0
0

Can you suggest a link for videos and data over 20km for a marine vehicle?

1 post - 1 participant

Read full topic

Turtle Mode Script

$
0
0

Hi there,

I am trying my hand out at writing Lua scripts. This one is for allowing the pilot to enable Turtle mode. Since most pilots don’t need it often enough to permanently tie up an RC switch, I thought maybe sharing it would be helpful to someone. Any feedback on the script is welcome too.

I have Stab, AltH, and Loit set on a three position switch on my TBS Tango 2. What the script does is monitor for a certain pitch or roll angle in the event the vehicle has landed up against an object like a wall or possibly upside down after a crash, and then swaps my Loit mode for Turtle until the pilot has been able to correct the vehicle. This has proven to be useful for me already on several occasions during my missions.

function update()
local roll_angle = math.abs(math.deg(ahrs:get_roll()) )
local pitch_angle = math.abs(math.deg(ahrs:get_pitch()))
local turtle_angle = 50
local turtle_available = -1

if (not arming:is_armed()) and ((roll_angle > turtle_angle) or (pitch_angle > turtle_angle)) then
turtle_available = 1
else
turtle_available = 0
end

– If pilot switches to LOIT flight mode (5) while turtle mode is available, then the script will switch flight mode to Turtle (28)
– If pilot is in Turtle flight mode while turtle is no longer available, then the script will switch the flight mode back to LOIT
if turtle_available == 1 and vehicle:get_mode() == 5 then
vehicle:set_mode(28)
elseif turtle_available == 0 and vehicle:get_mode() == 28 then
vehicle:set_mode(5)
end

return update, 100
end

return update()

Thanks for looking!

1 post - 1 participant

Read full topic

Uneven motors output on take-off

$
0
0

It’s a fresh 4.6 beta4 build almost ready for first hover.
What I observed is that the motors exhibit uneven power on take-off attempt.
The drone is on a flat, level surface without propellers.

What’s your opinion?

3 posts - 2 participants

Read full topic


How to automate mission creation

$
0
0

I’m trying to figure out how to automate mission creation because I need my drone to go to a waypoint, activate servo, loiter, and then deactivate the servo. I’ve already got the workflow down, I just would like to know if I could copy and paste the activate do_set_servo, loiter time, and then deactivate do_set_servo. Obviously I will have the waypoints already set out, I just need to apply those 3 steps to all of them.

1 post - 1 participant

Read full topic

PreArm: Check mag field (xy diff:1xx>100) doesn't go away

$
0
0

I’m having a pretty bad issue with my drone. Whenever I take it out, usually it will arm and fly for one flight, no matter how long(5sec-5min). Then, when I land it will not arm again and will give the message:

[19:27:56.355] Critical: PreArm: Check mag field (xy diff:118>100)

The first number(in this instance 118) does vary a bit, the highest I’ve seen is 158. This issue just started, and I’m not sure why or what caused it. Nothing really changed with my build. My specs are:

  • 30a ESCs
  • 3s 5ah LiPo
  • Matek H743-Slim
  • Matek M10Q 5883

Attached are some photos of the setup. I’ve checked for motor/compass interference before, and noticed practically none. I’ve tried re-calibrating the compass so many times, but it either serves as a one-flight fix, or just doesn’t work at all.




2 posts - 2 participants

Read full topic

Ekf3 yaw estimation error at various angle

$
0
0

Hello everyone,

I’m working with a CubeOrange (HexCube) Flight Controller, and I’ve connected HERE 3 GPS units via the CAN protocolHERE3 Manual. I’m using Mission Planner as the GCS and the latest ArduPilot firmware (version 4.5.7 Copter).

When I connect the GPS to the CubeOrange using the CAN protocol and configure the necessary parameters for CAN as per the instructions on the website, the GPS begins transferring data. However, I encounter three specific errors:

  1. EKF3 Waiting for GPS Config Data
  2. Yaw Inconsistent at Various Angles and
  3. Every time need to plug in and plug out the GPS after power the HexCube

Interestingly, when I switch to PX4 firmware, everything works as expected, and the drone flies without issue.

Has anyone experienced similar problems when using CAN-connected GPS on ArduPilot, or can you point me in the right direction for troubleshooting this?

1 post - 1 participant

Read full topic

Write param by sd card

$
0
0

I’m using Pixhawk 6c mini pilot board, I accidently disable the Serial 1 and Serial 2 flow control. I can’t connect to Ground Station Control, I want to enable Serial1 and 2 by using SD card. How can I do?

1 post - 1 participant

Read full topic

Preventing loiter in waypoint

$
0
0

When the plane reached the last waypoint, automatically starting loitering. I want to make plane continue straightly. How can I do that? Is there a specified parameter or mission command for this?

1 post - 1 participant

Read full topic

No ap_message for mavlink id (271)

$
0
0

Please tell me what this message means.: No ap_message for mavlink id (271) .Which error needs to be fixed?

1 post - 1 participant

Read full topic

Visual-Based Following on Plane

$
0
0

Hello,
I would like to do april-tag following on a quadplane. I see that this is supported in copter, but I am not sure if it will work on plane. It seems that, if using the L1 controller, the plane only support waypoint following. Is this correct? Is a new controller needed or are there parameters I can maybe turn on/off to make it work?

1 post - 1 participant

Read full topic


PreArm issue "EKF attitude is bad"

$
0
0

Hi Folks,

I calibrated my Quad copter using QGroundControl. My flight controller is OBAL.

IMU = MPU9250
GPS and Compass = HGLRC M100-5883

I sometimes receive this issue:

[12:21:03.468] Info: ArduCopter V4.6.0-dev (f486eb81)
[12:21:03.468] Info: 3f98949c395c4ba8933fb6459f2ec997
[12:21:03.468] Info: Frame: QUAD/X
[12:21:04.270] Info: Barometer 1 calibration complete
[12:21:04.930] Info: ArduPilot Ready
[12:21:04.930] Info: AHRS: DCM active
[12:21:06.929] Info: EKF3 IMU0 initialised
[12:21:06.936] Info: AHRS: EKF3 active
[12:21:08.319] Info: EKF3 IMU0 tilt alignment complete
[12:21:08.445] Info: EKF3 IMU0 MAG0 initial yaw alignment complete
[12:21:08.476] Info: ArduCopter V4.6.0-dev (f486eb81)
[12:21:08.476] Info: 3f98949c395c4ba8933fb6459f2ec997
[12:21:08.476] Info: Frame: QUAD/X
[12:21:44.504] Critical: PreArm: EKF attitude is bad
[12:21:44.527] Critical: PreArm: AHRS: DCM Roll/Pitch inconsistent 22 deg. Wait or reboot
[12:21:48.356] Warning: EKF3 IMU0 forced reset
[12:21:48.356] Info: EKF3 IMU0 initialised
[12:21:49.679] Info: EKF3 IMU0 tilt alignment complete
[12:21:49.756] Info: EKF3 IMU0 MAG0 initial yaw alignment complete
[12:22:43.931] Critical: PreArm: EKF attitude is bad
[12:22:43.934] Critical: PreArm: AHRS: EKF3 still initialising
[12:22:47.149] Warning: EKF3 IMU0 forced reset
[12:22:47.149] Info: EKF3 IMU0 initialised
[12:22:48.581] Info: EKF3 IMU0 tilt alignment complete
[12:22:48.680] Info: EKF3 IMU0 MAG0 initial yaw alignment complete
[12:24:21.072] Critical: Arm: Throttle too high
[12:24:35.541] EMERGENCY: Crash: Disarming: AngErr=35>30, Accel=0.3<3.0
...
[12:26:30.701] Info: EKF3 IMU0 MAG0 in-flight yaw alignment complete

is this a problem in calibration?

3 posts - 2 participants

Read full topic

Hexacopter spins outof control just on takeoff, using pixhawk 2.4.8

$
0
0

i am a complete beginner to pixhawk and got pixhawk 2.4.8, on YT it looks so easy to build the drone with this but I am having one hell of a nightmare. the drone upon takeoff is spinning CW and slowly increasing in speed and crashing. the ESCs also beep out of sync slowly, the motor and the props are correctly placed. i am using S550 frame. i have disabled the internal compasses and am using an external compass. i have the log file can anyone help me out please.

17 posts - 2 participants

Read full topic

Fimi x8 mini core board pinout for flash firmware

$
0
0

Hello, I’m asking if anyone can decrypt the pin outs on this Fimi x8 mini motherboard.


1 post - 1 participant

Read full topic

AI params test competiton

$
0
0

I asked some AI guys for my params’ file problems or miss configs.

The best answer was few screens long and very detailed.

My question was:

analyze and find wrong parameters for first hoover flight for 4 engine ardupilot drone using 11 inch propellers and 3s lipo battery ... (then params follow) ACRO_BAL_PITCH,1
ACRO_BAL_ROLL,1 ....

Here is an example table summarizing issues.

other bot:

next one:

What’s your opinion?

2 posts - 2 participants

Read full topic

Object avoidance is slow to react in Copter

$
0
0

Hello,

I equipped my quad with VLX rangefinders facing 0, 90, 180 and 270 degrees and I am using them as proximity sensors for simple object avoidance in Loiter. Downward facing rangefinder is also present. The behavior I get is somehow unpredictable: when going slowly towards objects the quad will stop and backup as I expect it to do, but when going a bit faster towards objects or even when backing up from object to object there is no stopping and the quad hits the object. DISTANCE_SENSOR message are present and proximity data is there:


Drone is not using GPS but optical flow sensor for XY velocity control and I am flying indoors only.

Are my expectations too high in terms of how object avoidance should react or is the update rate of distance data too low or are there some config options to address this problem? Any ideas?

Thank you!

1 post - 1 participant

Read full topic

Viewing all 47138 articles
Browse latest View live


Latest Images

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