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

Tmotor flame 60 esc

$
0
0

hi
i use arducopter firmware which i use that for my agriculture UAV, i use flame60a esc , my question is during my flight suddenly my motor3 turnoff and i have hud warning potenital thrust loss (3) . i do some of my tasks with lua script. i talk about this problem with t-motor and they told me you have to put transmitter position to low and then restart motors. i want to know can i set pwm value for one motor in flight to low and then restart ESC just for one motor , can i do it with lua script ?

6 posts - 2 participants

Read full topic


Custom Gimbal/Manipulator controlled over Serial port

$
0
0

Hi everyone,

I have a custom Gimbal (or manipulator if you want) based on NEMA Stepper Motors and TB6600 Stepper Motor Drivers.
Can someone advise me on the best way to integrate it with ArduPilot: Rover?

I know that ArduPilot (like other autopilot systems) is designed to control various motors via PWM/PPM or SBUS, which are fast and accurate. However, it seems a bit odd to me to convert PWM to stepper PUL/DIR signals using another controller (e.g., Arduino) for my gimbal.

I’m using speedybeef4-v3 as my autopilot board which seems does not support GPIO and lua scripting so I really want to utilise avaliable comms like uart/i2c/spi.

There is a very helpful article for creating Custom Sensor Drivers - but this is for sensors (reading device), and I need a driver for controlling a device like a gimbal.

I found support for the SimpleBGC gimbal controller, which can communicate with ArduPilot using MAVLink or a custom serial protocol: common-simplebgc-gimbal

This looks like what I need, but I can’t find any articles showing where/how I can implement a custom serial protocol in a way that doesn’t require changing the ArduPilot core code.

Or maybe it’s better to go from other way and implement MAVLink protocol (v1) on my manipulator side?

I feel like I’m almost there with my research, but before I start coding, I would appreciate some advice or oppinion from the experts or community.
Looking forward to your feedback!

1 post - 1 participant

Read full topic

Preventing an unstable EKF

$
0
0

I’d like some help with analysing a BIN file and suggestions to help get better flight data. I’m writing a system that uses ArduPlane as a low-cost flight LOGGER in real-sized aerobatic aircraft. My software was originally based on FlightCoach.

For the past year, I have been flying a low powered Slingsby Firefly and getting good results from a cheap Omnibus F4 and a Beitian BN-880 GPS. I’ve since stepped up to an Extra 300, high performance aircraft doing more radical manouvres - flick rolls and a lot more time spent inverted. Consequently, I’m losing the GPS signal more often. The Ardupilot EKF is now becoming very unstable.

I’ve recently upgraded my hardware to Pixhawk Mini 6C controller with a larger Beitian M10 GPS(BE-450). This has dual IMUs and a faster processor which has helped matters. I now get the occasional “reset” when the GPS is re-acquired and only a few minutes of crazy EKF instability on a flight. The EKF eventually resets and the remainder of the flight data is acceptable.

Here’s my BIN file:

The take off occurs at 11:55:08 and the PM/Load data jumps from 60% to 85%. Is this acceptable? Should I only be using one IMU? Should I slow down the logging from LOG_FILE_RATEMAX = 30 hz?

There’s a “Reset Glitch” at 11:58:28. The number of satellites drops to zero, but seconds later it’s back to 20. Can the EKF instability be “smoothed” out?

The major instability is between 12:14:01 and 12:16:26. Once again the satellites drop to zero. Interestingly the PM/load drops from 85% to 58% and then stabilises at 62% for the rest of the flight. Why does the load drop? The EKF goes crazy as shown by XFK3/IPE.

I realise that I could put a second GPS sensor on the bottom of the aircraft, but fitting a permanently wired GPS sensor would involve CAA approvals - a nightmare. I’m hoping that there is some way of stopping the EKF becoming so unstable when it loses the GPS…

Any help would be greatly appreciated.

1 post - 1 participant

Read full topic

Understanding Params from Flight logs - Missing data points

$
0
0

Hello,
I would appreciate someones help in telling me why I have multiple GYR, IMU, BARO, ACC, etc in my logs (e.g, GYR_1 up until 5). Same thing goes for the EKF data in XKF.

I have noticed the difference between GYR and GYR_5 is lower frequencies or oscillations but I would like to have a deeper understanding on the purpose of it?

Two additional requests:

  • In GPS i have some data that are missing. Anyone have explanation for that? How can I fix it?
  • I have followed recommended steps on manual and auto tuning. Could you please advice me if there are anything i can do to have better (in terms of stability and less oscillations)? As I have some high vibrations on the x and y-axis during high maneuvers.

Link for the logs

Hardware setup:

  • X500 V2 holybro frame
  • Pixhawk 6X
  • Motor 920 KV

2 posts - 2 participants

Read full topic

I dont trust AUTOTUNE in such a case !.. Or shall I?

$
0
0

Just finished my Atomrc Swordfish with an F405 NAVI inside.
Running on version 4.5.7
I used the factory provided paramaeter file as a starting point.

During my flight preparation tests I observed following wrong behavior in (all) stabilized modes:
a) Move Nose UP - Elevator goes UP (wrong, it should go DOWN)
b) Move Nose DOWN - Elevator goes DOWN (wrong, it should go UP)
The Aileron reactions are correct
Further, observed wrong Mixers
c) Right Roll initiates at the rudders Left-Yaw (it should be Right Yaw)
d) vice versa c)

I am new in Ardupilot.
I studied the Ardu WIki how to solve the problem.
But I couldnt find any possibility to fix that before the maiden flight.
All what they say is, fly away in Manual mode, go high, then switch to FBWA and “AUtotune will correct this behaviour”…
But cant believe on that .
Any help ?

4 posts - 2 participants

Read full topic

Telemetry Items available in OSD

$
0
0

I am coming over from INAV, was mostly expecting a way more options and control with AP, almost like I could do almost anything, which I am seeing already, however there are a few things that actually seem more limited than INAV, but I am probably just not understanding the software or missing something.

The available OSD options seem sort of limited. I’ve always used “mAh remaining” in INAV for battery monitoring, that doesn’t seem to be an option in AP, as well as a few others that I would think would be there, is there a way to add these somehow?

Also, INAV has the “programming” tab to program simple logic and use it to set global variables and control things, is there something similar in AP? That seems like a huge feature.

1 post - 1 participant

Read full topic

Camera Gimbal cannot be assigned

$
0
0

Hi, I have copter 4.5.7 and are using the latest 1.3.82 mission planner for config.

I cannot assign anything for the camera gimbal, I have a tilt mount and on another quad I own running a very old version of ardupilot, have the same tilt mount assigned as the camera gimbal and can manually control it or set it to auto level.

No matter what I try, I cannot set it to assign the channel the tilt mount is on as the camera gimbal, all the fields for the camera gimbal are greyed out in mission planner.

Can anyone help please?

1 post - 1 participant

Read full topic

SITL in Mission Planner Auto mode stops working 7-8m away from waypoint

$
0
0

Hello, I was trying to write a code that would interrupt an autonomous mission sent by mission planner by switching to guided mode and waiting for 5 seconds. After the 5 seconds, I wanted to switch back to AUTO mode to resume the mission.
However I noticed that in MissionPlanner, regardless of if I switch to GUIDED mode or not, the mission keeps freezing at 7-8m away from my first waypoint.
I have tried restarting mission planner and creating new waypoints but its the same result every time.
Please help me with this

1 post - 1 participant

Read full topic


Speedybee f405 WING isn’t supplying power to the servos

$
0
0

I don’t know if this is a ardupilot problem, or a flight controller problem, but my speedybee f405 wing isn’t supplying any power to my servos even when armed. The servo outputs are moving as they should in Mission Planner, but the servos themselves refuse to move. Any help? I’ve tried disabling the BRD SAFETY in parameters, but it hasn’t helped.

1 post - 1 participant

Read full topic

No RC Found, methodical Config

$
0
0

So I fought for days trying to get my ELRS receiver to work.
It’s on serial1.
I used the methodical configurator for the first time on this build.

Eventually I just deleted/reset everything and started over.
RC in worked fine immediatly.
So w/o having to redo all this work to make this fly, anyone see why ELRS/RC in Can’t ever be found/work?
Thanks!!!

Parms File

1 post - 1 participant

Read full topic

SLCAN and Mavlink COM Ports

$
0
0

Hi,
When I connect my Pixhawk 6x FC on which the arducopter firmware is deployed I see 2 COM ports coming up in windows one containing ‘Mavlink’ and the other ‘SLCAN’ in their respective port names. When I connect with mission planner, I can connect with both of the ports.
In this documentation: https://ardupilot.org/copter/docs/common-slcan-f7h7.html it suggests to use SLCAN with Mavlink.
I had a doubt that since both the SERIAL ports are connected through 1 usb cable with my computer, will not there be data loss if I try to send data from both the serial ports simultaneously?
I can connect to 2 gcs softwares at the same time, one with the mavlink port and the other with the SLCAN port which is basically a Mavlink port unless configured for SLCAN. If I start communication from both the gcs softwares, will not there be any communication issue due to both the serial ports using the same usb cable to communicate with mu computer?

Can someone help me understand this?

Thanks,
Sayan

1 post - 1 participant

Read full topic

Is Autotune the Answer?

$
0
0

I am currently building a 7-inch FPV drone.
The drone is capable of stable flight, and I have applied notch filters as well.
Here’s my original setup and short flight video.

FUGA FC를 올린 7인치 FPV 드론 비행 2

I believe the current PID values are reasonable, but I conducted autotune to increase the maximum acceleration values.

Considering the flight time, I only performed autotune for the Roll axis first.
I conducted tuning with AGGR set to 0.075.
After confirming the “Success” message, I landed and checked the values.

However, as shown in the attached photo, the values turned out to be lower than I expected.

Issues Encountered During Autotune

  1. Performed Autotune in Loiter Mode Instead of AltHold Mode

    • However, since Autotune is based on AltHold, I believe this shouldn’t have caused any problems.
  2. Landed the Drone Once During Autotune

    • Override was triggered during this time, but I think it did not affect autotune. I didn’t disconnect the battery, and the Autotune AUX channel switch remained in the High position. I also confirmed the Autotune “Success” message.
  3. Vibration Issue? Notch Filter Issue?

    • Unfortunately, I accidentally deleted the most recent flight logs.
      Instead, I am uploading a log from a previous flight.
      The values are almost identical, and the vibrations are generally good, averaging 3–5 and
      staying below 10.

Should I try Autotune again, or should I manually adjust the values?

My drone uses pusher-style propellers (not puller), with the battery mounted underneath the frame and the payload on top.
The center of gravity is well-balanced.

1 post - 1 participant

Read full topic

Constant GPS or Compass Error

$
0
0

I have a 3-part question with a Quadcopter I have flown for a bit trying to debug a few issues but eventually resulted in a crash (the crash itself does not seem related to these issues but it would be nice to double check).

The Quadcopter:
17in Props
Cube Orange
Copter 4.6.2beta
Here 3 GPS
T-Motor MN5008
T-Motor Air 40a
Tarot 650 frame

I had manually followed the methodic configurator process and completed notch filtering, an initial autotune, and a magfit. However, I would get quite a few “GPS Glitch or Compass Error” followed by a “Glitch Cleared” as well as EKF lane switches.

  1. Seems like the GPA.SAcc is pretty high in my log and is setting off the error. What would cause this? The drone was flown in an open field and all other GPS values seemed reasonable for a non-RTK flight.

  2. The EKF lane switches quite often during flight as well. From digging through the logs, it seems to be caused by the GPS altitude and Barometer estimates diverging during flight. This doesn’t seem to do anything as there is only one GPS and both EKF lanes use it. Is this of any concern?

  3. I was conducting some figure-8 flights for a second magfit (in case it was the compass) when motor 3 failed which resulted in a crash. Would anything in the log suggest an ESC desync to cause this? It is also possible that one of the phase wires broke on motor 3 during the flight as the wire was found disconnected.

1 post - 1 participant

Read full topic

Autotune is not giving a proper gains for CUAV x7+ and taking long time for tuning

$
0
0

Hello all, I am facing issue in autotune. My copter is 850mm X 850mm frame with 250kv motor, 80amps esc and 24inch propeller, 30,000mah battery, CUAV x7+ FC. I have followed each and every steps instructed by tuning procedure. After applying notch filters, did quicktune. Later while autotune its taking long time in tuning D and angle but after tune the values I am getting is sluggish and the angle is less than 3. So I need suggestion from the expert. please help me out to resolve the issue. I am attaching a log below.

1 post - 1 participant

Read full topic

"Connect Failed" Mission Planner

$
0
0

I’m having trouble connecting to Mission Planner. I receive a “Connect Failed” error when attempting to establish a MAVLink connection. I’ve tested my firewall settings, ensured the correct ports are open. Despite trying several solutions, including changing ports and reconfiguring settings, I am still stuck. Any advice or steps I can try to resolve this?

3 posts - 2 participants

Read full topic


Process for updating copter firware

$
0
0

Apologies for the newbie question. However, i didn’t find any posts about this basic topic.

How does one go about updating their arducopter firmware?

  1. Do all the parameters remain, or do we need to set those back up?

  2. Can i do it using the herelink telemetry and wifi or do i need to connect directly via usb?

I have a multi-copter with orangecube.

Much thanks in advance.

2 posts - 2 participants

Read full topic

Issue with downloading logs over USB

$
0
0

Lately on MP only i have an issue trying to download logs over USB cable.
I always use Cube FC and on 95% of my builds i have the additional USB cable installed since access to the side of the Cube is not easy.

Mission Planner USB Log Download issue

I tested on 3 PCs one of which has fresh windows, MP and UAV drivers for sure installed.
Issue comes only when it relates to logs.

2 posts - 2 participants

Read full topic

Unstable with boat in loiter mode

$
0
0

Hi,there

I am running a test with a kayak which have two motors.

when turn into loiter mode the kayak seems unstable wheather in static lake or stream in river.But it’s absolutly stable when I move the system(includes motros and pixhawk and every thing except the kayak) to a small boat.

what’s the problem?

BTW.the lenght between two motors is almost the same for the kayak and small boat.

3 posts - 1 participant

Read full topic

lidar collision avoidance not stopping vehicle

$
0
0

After installing LiDAR on my vehicle, which is functioning perfectly according to the Radius ( radar display), I’m having trouble getting the vehicle to stop when it encounters an obstacle. I’ve gone through all the setup options, from basic “avoid by stopping” to using the (BenduRuler) method to avoid obstacles, but nothing seems to be working. I will attach the latest (bench test) log file for reference.

2 posts - 1 participant

Read full topic

ESC Mounting Best Practice

$
0
0

Q1. Should a individual ESC (not a 4in1) be mounted close to the Flight Controller (long motor wires) or mounted close to the motors (long ESC to FC wires) and what is the reason for this?

Q2. What is a practical method of mounting single ESCs to the frame that overcomes exposed ESC connections and movement (vibration)? 3D printed mounts seem a good solution but that involves designing and printing them?

2 posts - 2 participants

Read full topic

Viewing all 46981 articles
Browse latest View live


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