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

Extending Flash/Bootloader Segmentation induced a bug

$
0
0

@Yatin-Khurana wrote:

Hi Everyone,
Actually, I was making some changes to the bootloader for pixhawk1 (clone), for which I tried to increase the FLASH_RESERVE_START_KB in libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py and libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef-bl.dat from 16KB to 25 KB, but Although Everything works fine, on flashing the copter(from waf) for the first time after mass erasing and uploading bl (through DFU): i.e "

Erase : [====================] 100.0%
Program: [====================] 100.0%
Verify : [====================] 100.0%
Rebooting.
“,
On every second upload onwards the .waf command gets timed out upon the erase operation.
"
Erase : [====================] 100.0% (timeout: 0 seconds)
ERROR: timed out waiting for erase”.
Does anyone have a clue what might be causing that?

Posts: 1

Participants: 1

Read full topic


Integration of ArduPilot and VIO tracking camera (Part 3) - Indoor autonomous flights and performance tests

$
0
0

@LuckyBird wrote:

Introduction

Following part 1 and part 2, we now have a quadcopter capable of precise indoor localization and navigation using position data provided the Intel Realsense T265. In this last part of the ROS-based portion of my ongoing series of labs, we will take a look at how to use Mission Planner or python program to send waypoints to ArduPilot, perform autonomous flights, and verify the tracking performance of the T265 under some challenging scenarios.

This blog is divided into the following sections:

  1. Prerequisite
  2. Checking the safety perimeter
  3. Autonomous flight
    a. Mission Planner - Sending waypoints in Guided mode
    b. ROS - Sending waypoints in Guided mode
  4. Performance tests
  5. Conclusions

1. Prerequisite

You need to follow the steps outlined in the previous part 1 and part 2, and have a vehicle that:

2. Checking the safety perimeter

This is an important safety measure for indoor flight tests. What we need to know is the safety area on the map that the vehicle can operate in, so that we don’t accidentally send it to the wall.

3. Autonomous flights

Once a safety working boundary is established, autonomous tests can be carried out. If you are using Mission Planner, you don’t need to set one of the flight modes to “Guided”, but that might not be the case for other GCS.

a) Mission Planner - Sending waypoints in Guided mode

  • Make sure position data feedback from T265 is ready, EKF home set, and you have a good sense of the safety boundary.
  • Manual flight test: take off in alt-hold or loiter. Make sure that the vehicle can hover stably.
  • In the Mission Planner map, right-click on a nearby spot and select “Fly to Here”. Select a safe altitude for guided mode so that you do not hit the ceiling.
  • The vehicle should fly to the target location and hover there until further commands or the flight mode changes.
  • Next flights, you can try and issue a take off command from Mission Planner directly.

b) ROS - Sending waypoints in Guided mode

We will use the scripts provided by @anbello in the aruco_gridboard repo. If you have cloned my repo vision_to_mavros, two of the examples are located in the scripts folder.

  • Make sure position data feedback from T265 is ready, EKF home set, and you have a good sense of the safety boundary.
  • Manual flight test: take off in alt-hold or loiter. Make sure that the vehicle can hover stably.
  • Before you run the script: if the quadcopter is on the ground, make sure to put it back to the origin, otherwise it will not take off vertically.
  • To run the scripts:

# On RPi, run either:

rosrun vision_to_mavros mavros_control1.py

# Or:

rosrun vision_to_mavros mavros_control1.py

  • The first script mavros_control1.py will ask the quadcopter to take off to 1.2m, maintain that height while moving along a 0.4m square.
  • The second script mavros_control2.py will ask the quadcopter to take off to 1m, move around a circle of 1m radius, while lock the heading to look at the center of the circle.

Now you can explore other options for autonomous flights. Here’s some references to help you get started:

4. Performance tests

One of the key aspects of my 2019 GSoC project is to analyze the performance of the T265 under various conditions. First, let’s see the results of a good flight:

To test the limits of the T265, I have conducted several tests in an indoor environment:

  • High dynamic range of luminosity:

In the video, you can see that the tracking “confidence level” of the T265 was “high” for most of the flight and briefly changed to “medium” when the light switched between on/off. The T265 was able to maintain good tracking even when the lights were turned off, or turned of and off repeatedly. Albeit that the room was not completely dark, I believe not many SLAM algorithms would have coped that well with such lighting conditions.

  • Frame induced with heavy vibration:

My quadcopter frame did not have much vibration (luckily). To test this, vibration was intentionally added into the system by changing one motor to a different KV than the others, and wrapping duct tapes to the tips of one propeller. Even then, there were no problems with for most of the tests.

However, as can be seen in the video below, position tracking did diverge in some cases, suggesting that with “appropriate” kind of vibrations, problems can occur. The EKF2 was fusing both vision feedback and optical flow. At the end of the video, when position feedback “jumped” back to the right position, the local position did not jump and remained approximately where it was.

  • Environment with a lack of distinctive features and repetitive patterns:

To simulate this scenario, the T265 is positioned facing downward. In this case, the scale of the T265 is often not as accurate as facing forward (i.e. 1m lateral movement translates to 1.2 or 0.8 difference in position feedback). Even though optical flow was also fused, local position shown on Mission Planner was similar to that of T265 feedback. Occasionally, the position also drifted after some rounds of movement.

It is safe to say that as of this writing, care should be taken when using the T265 in a downfacing configuration, specifically in terms of scale, initial yaw angle, and drift:

5. Conclusions

With this, we can now close our first section of the lab series, which focuses on the integration of ArduPilot and the Intel RealSense Tracking Camera T265. I hope that these 3 blog posts will be a getting started guide for anyone interested in the use of visual inertial odometry (VIO) technology to make a robot that can navigate in GPS-less environment, using a plug-and-play tracking camera.

  1. Part 1
  2. Part 2
  3. Part 3 (this blog)

Any feedback is welcome and I look forward to hearing from you all.

Posts: 2

Participants: 2

Read full topic

Problems with "APM: PreArm: EKF attitude is bad" in Erle-Copter RL Example

$
0
0

@Jonnyerdnuss wrote:

Hey there!

I have some troubles with an example from Erle Robotics (its deprecated but i still hope to get it running) for the gazebo-gym (q-learning for hovering).

I posted a topic earlier but it seems i have fixed this issue (Link!) and run into the next one.

Im my Terminal is no error but the simulation doesn’t start. Meanwhile it seems that ArduCopter is trying to Arm or something and has some issues with it. I put in a Screenshot, Link.

I’m not very experienced with Ardupilot and only tested a few Tutorials from this website (which worked fine), i have no idea where is should look for a problem.

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

One motor stuttering

$
0
0

@Nord_RED wrote:

Hej,
A newbie building the first heavy drone here and one motor keep stuttering from time to time. I changed the ESCs among motors, but only one motor has the problem. I checked the resistance for soldering and did the ESC calibrations in mission planner but still has the problem. Can someone help me to solve this?

Copter setup:
Cube black on quad X
Sunnysky’s EOLO ESC 50A
Sunnysky v4008-17 KV380
6s Lipo

Here is a video of the case:
https://vimeo.com/342257880

Also does anyone know what firmware is used in EOLO and a suitable protocol?

Thanks!

Posts: 3

Participants: 2

Read full topic

IMU Filter Tool

$
0
0

@guglie wrote:

Hi, I want to share a simple python tool to apply FFT to raw IMU logs and then test various filters.

I’m also testing spectral analysis to see how FFT changes over time:


I can clearly see at least 3 different curves, I think relative to the resonance frequency of 3 motors, with their harmonics above.

If you think it can be useful, just tell me where to put it and I’ll make a pull request :slight_smile:

Posts: 3

Participants: 2

Read full topic

Blheli32 confusion

$
0
0

@voi9viper2 wrote:

I too was missing the servo_blh parameters, until I found the thread about that. I’m even more confused now. What firmware version should I be using? Where is the Chibios passthru video? The BLHeli documentation doesn’t mention any of this, and that is where I went first. It was working until I upgraded firmware to the latest stable build. I don’t mean to ome across as angry, but I’m frustrated. Can we maybe settle on an operating system and a way to oonfigure blheli32?

Posts: 1

Participants: 1

Read full topic

ChibiOS 3.6.9 -> The aggressive switch into LAND Mode is back!

$
0
0

@Fabian wrote:

Hi there,
since yesterday I test the new pixhawk 4 with 3.6.9 and chibiOS. Unfortunately, I’ve just found out that the Copter stops far too aggressive when flying in Loiter mode and switch into Land mode. This has already been fixed in version 3.6.7 under NuttX. Was this forgotten when switching to chibiOS?

Could you PLEASE solve this issue as soon as possible?

Copter 3.6.7 06-Mar-2019 / 3.6.7-rc1 28-Feb-2019
Changes from 3.6.6

  1. Bug fixes and minor enhancements
    a) Matek405-Wing compass fix (thread initialisation fix)
    b) Landing flips reduced by reducing I-term build-up
    c) Land mission command slows down less aggressively
    d) Lightware LW20 lidar more reliably switches to serial mode

Posts: 1

Participants: 1

Read full topic

VTOL, TRI Rotor, Yaw control with rudder in hover mode

$
0
0

@Timmy_Lassie wrote:

I have almost finished building a VTOL tri rotor vehicle based on the Finwing Transformer airframe. It differs from any other vehicle i have seen in one way. the vertical tail/rudder rotates with the aft engine when it transitions from plane to multi-rotor (MR) mode. in MR mode what was the vertical tail/rudder sits above the aft rotor and can be moved using the same servo it uses to move the rudder in plane mode. you can see in the attached picture. the concept is to use the same yaw controls in hover as in flight. has anyone ever built anything like this? will the ardupilot software work for this? my current plan is to use a sailplane type rotor blade on the aft engine which will streamline back in plane flight with the two front props acting as tractors for the vehicle. this is for search and rescue use.

https://drive.google.com/drive/folders/1VHldM4rtltOXAgGaDkEJtyBzWGBkLUYE?usp=sharing

dennis

Posts: 1

Participants: 1

Read full topic


Log analysis for crash: EKF Error

$
0
0

@Pavan wrote:

Hello,

We flew our Hexacopter on an auto mission and mid way into the mission we encountered a crash. In the log file, we see the error “EKF Primary changed to 1” and back to 0 before all the sensor values went erratic and the copter came down. Could someone please help me analyse it further to see what exactly is the reason for the crash. I have attached the log file EKF error log file

@tridge Could this be a EKF lane switch issue?

Thanks

Posts: 2

Participants: 2

Read full topic

Cube (ChibiOS BL) + Holybro telemetry kit = won't start at times. Was working ok on nuttx

$
0
0

@Steve79 wrote:

Hi all.
I’m posting here because i think mine is a software related problem.

i have some cubes and holybro telemetry kits 433mhz 500mW v3. While i was using nuttx based firmwares and bootloader, i never had problems. Since i switched to chibi, i think something has changed during boot time. Now, system won’t start (FC stays died - only blue dimmed led of Here2 gps turns on, which is its normal behaviour if powered but nothing connected to it) most of times i connect battery. Sometimes it starts, one out of 20 trials, then it won’t start anymore. If i disconnect the telemetry module from Telem1 port, then it will start normally again. If i connect it while powered (!!) it will work with no problem. if i cycle power without disconnecting it, then, it will not start again.
Sometimes when i also connect usb cable to the cube from laptop, even with telemetry module, it will likely to start more often (like one time every 2 or 3). I don’t think it’s an electrical problem, i use original cable on telem1 which always worked before.
I tried both nuttx fw (but with ChibiOS BL) and ChibiOS fw, no changes. I think it related to ChibiOS Bootloader, which i don’t know how to downgrade, given it’s possible.

Also i call for Holybro and every user which uses this thing with tablets: only cable included in the kit is a micro usb OTG. Nowadays, we use USB-C devices mostly. Attached a USB-C converter to a recent Huawei and Samsung tablets, it does not work, neither it powers up. Is there a cable solution to fix that?

Posts: 1

Participants: 1

Read full topic

Oportunity for Devs

$
0
0

@arthursn138 wrote:

Hi folks,

I’m an engineer on a Brazilian UAV startup and there has been some new demands I don’t have neither the skills or time to deal with.
At principle this can be a remote consulting/freelance job, but might evolve into a more steady position.
Please PM me if you are interested on helping boost up the UAV industry!
Preferred skills:

  • Development on GCS and FC (px4, qgc, mp, ardupilot, etc)
  • Development and basic systems integration on Raspberry-pi

Sorry if this is not the best category to post this. In case there is a better one, just point me which is and I’ll delete this post.

Cheers!

Posts: 1

Participants: 1

Read full topic

Confusion after upgrading to MP 1.3.67 and Copter 3.6.9

$
0
0

@daveymg wrote:

I’ve just updated MP to 1.3.67 from the MSI (update kept giving hash errors), the update completed OK. Connected my PX4 quadcopter and updated Copter to 3.6.9 which also completed OK.

After the updates when I connected to the PX4v2 the frametype came up as helicopter, as did the description in the box next to the Stats option. The frame type displayed as 6 so I reset it to 1 and wrote back to the px4 but after a reboot of the px4 it shows up as helicopter again.

On the previous firmware when I connected without my Tx turned on, MP would give the “pre-arm, throttle below failsafe” warning, but now it only gives “pre-arm, collective below failsafe” regardless of frame type.

How can I make the frame type “stick” to quad? And should the pre arm message being using “throttle” if it’s a quad frame config?

Thanks,

Posts: 7

Participants: 4

Read full topic

Pixhawk AC 3.6.9 multiple error

$
0
0

@hosein_gh wrote:

hi
i need some help about troubleshooting my hexacopter.
in flight my copter is stable and act good but :
1- in my video i have jello and i want find out this jello is because of my copter vibration or my gimbal is not working correctly.

2- always i have compass error ( Compass = FAIL - Large change in mag_field (40.64%)
Max mag field length (634.55) > recommended (550.00)) and both of my compass are calibrated and health of mag is good as QgroundControl said.

3- always i have motor balance warning (Motor Balance = WARN - Motor channel averages = [1658, 1563, 1580, 1643, 1571, 1652]
Average motor output = 1611
Difference between min and max motor averages = 95) but i calibrated my ESC and my motors are same.

4- some times i have this error (NaNs = FAIL - Found NaN in CTUN.DSAlt
) and i dont know what is that.

these error relay confused me and i cant find the reason of jello.

my config is :
frame : Tarot s550 pro
motor : XXD a2212 930kv
ESC : hobbyPower 30A
gimbal : tarot t4-3d
flight control : pixhawk (cuav) 2.4.8
battery : tattu 3s 10000mah
gps : ublox m8n
propeller : emax 10x45

and this is my log file :
https://drive.google.com/open?id=1XLQhq3PU-0Uy3ei2yocaN9AwfoCK9bRt

thanks.

Posts: 1

Participants: 1

Read full topic

Arducopter 3.6.9 made sudden crash from 10 meters

$
0
0

@Tom-fly wrote:

I was testing 3.6.9 version for third time. After 2 minutes of flying I tried to took her back to rtl. Suddenly 17m height motors just stopped and she crashed down. Now there is lot or work to get it back to flight. Batteries, part of frames etc has to be fixed. It would be good to identify problem why emergency mode went on and what actually caused blackout for motors. It was third flight with AC 3.6.9.

98 14.6.2019 19.56.32.bin.zip (925.7 KB)

Posts: 1

Participants: 1

Read full topic

New Rangefinder params

$
0
0

@Corrado_Steri wrote:

Are the new rangefinder parameters only available in master?

I would like to use the following:

RNGFND1_WSP_MAVG: Moving Average Range
RNGFND1_WSP_MEDF: Moving Median Filter
RNGFND1_WSP_FRQ: Frequency

Posts: 1

Participants: 1

Read full topic


Comparing vibration logs

$
0
0

@Vince_Hogg wrote:

Apart from the obvious, (screen shots side by side etc) is there a smart way to compare two logs, before and after, to see if there is an improvement?
My new copter was borderline with vibration, with increasing clip3 (perhaps 300 in 5 minutes hover).
Ive now installed TPU ‘springs’ on the cube. The change may be subtle but just wanted advice if there was a better way to compare.
Thanks

Posts: 1

Participants: 1

Read full topic

RX Errors with several Sik radios

$
0
0

@TobiasD wrote:

Hello,

I’m trying to monitor several UAVs under QGC. They are equipped of 3DR radios 500mW 433MHz.

When I power up a single UAV, all works good: I have 0 Rx Error reported by QGC and I can perform a flight.
As soon as I power up a second UAV, I get Rx Errors. I also get some “Communication Lost” lasting few seconds.

I read and understood most of infos from http://ardupilot.org/copter/docs/common-sik-telemetry-radio.html and can’t find any topics about my problem.

I tried many different radios configurations but still get the same problem:

  • I have different NET ID for each pair of radios.
  • I tried with 20dBm TX power, and also tried with 8dBm to see if 20dBm TX power is too high and makes noise.
  • I tried with the same range of MIN_FREQ and MAX_FREQ for all radios, and also tries to set exclusive frequencies range for each pair of radio.
  • I’m using ArduCopter 3.6.9 and the latest QGC/MissionPlanner. The “format” value giving the version of the radio firmware is 25.

Here is an example of configuration I tried for my two first UAVs:
ID AT PARAM NAME UAV 1 UAV 2
S0 FORMAT 25 25
S1 SERIAL_SPEED 57 57
S2 AIR_SPEED 64 64
S3 NETID 11 12
S4 TXPOWER 20 20
S5 ECC 1 1
S6 MAVLINK 1 1
S7 OPPRESEND 1 1
S8 MIN_FREQ 433050 433300
S9 MAX_FREQ 433300 433550
S10 NUM_CHANNELS 3 3
S11 DUTY_CYCLE 100 100
S12 LBT_RSSI 0 0
S13 MANCHESTER 0 0
S14 RTSCTS 0 0
S15 MAX_WINDOW 131 131

Thanks for any information :slight_smile:

Best regards

Posts: 1

Participants: 1

Read full topic

RTK with copter 3.5

$
0
0

@mtnsurveyor wrote:

I have a Here+ and had it running RTK on a cube 2.1. The cube crashed and I got no answers as to why so I want to put the Here+ on a pixhawk with copter 3.5. After plugging the Here+ in to GPS, Ic2 and the safety I get only a 3D fix. Mav is running and so is the base but I can’t get it to go to float??
I tried the baud rates for gps & mav but it does not change anything.
Will RTK work with 3.5? Does anyone know what parameter to set?

Posts: 1

Participants: 1

Read full topic

Requesting BATTERY2 message

$
0
0

@Pavel_Bobov wrote:

QGroundControl 3.4.2
ArduCopter 3.6.1

I do see BATTERY2 message in QGroundControl MAVLink inspector, but I cannot get it from a companion computer.

The companion computer does request MAV_DATA_STREAM_EXTRA3 with 2 Hz frequency. It does get most of MAV_DATA_STREAM_EXTRA3 messages, including BATTERY_STATUS, TERRAIN_REPORT, and VIBRATION, but BATTERY2 is not there. Why is that?

Posts: 1

Participants: 1

Read full topic

Motors don't work ESC DALRC PRO to PIXHAWK

$
0
0

@Rogelio_Gonzalez wrote:

We are trying to connect pixhawk 4 to an ESC DALRC Enige PRO.

The motors do not start when we send the signal. We are not sure if the wire connection is correct.
For example the current wire we don’t know where to connect in the pixhawk int.

Out components:
DALRC ENGINE PRO 40A 4in1 ESC
Radiolink PIXHAWK Flight Controller FPV RC Drone FC 32 Bit with Power Module

Exists a wire map to connect the DALRC ENGINE PRO to a PIXHAWK directly.

Thanks for any help.

Posts: 1

Participants: 1

Read full topic

Viewing all 46553 articles
Browse latest View live


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