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

Spins like a top

$
0
0

@charles_linquist wrote:

I did some work on the gimbal, and went for a short AUTO flight. There were no errors before ARMing. Soon after taking off the quad started spinning (on the yaw axis) like a top. It completed the mission, but spun about 1 revolution every 4 seconds the entire time. After it landed, I noticed that the compass orientation was about 45 degrees off. Could this error make it spin, or is it something else as well.

Posts: 1

Participants: 1

Read full topic


Finding all the codes from RC output to MOTORS input

$
0
0

@FleN-B_Music_Produce wrote:

i have just started figuring out what ARDUPILOT is since ive started building a quadcopter with pixhawk. i’m trying to find the answer for this question: if i move the sticks on the RC (pitch, roll, throttle, yaw) show me in the code how does it effect and activate the motors.

could anyone help me find the correct functions? no need to explain them but it will help a bit :sweat_smile:

Posts: 2

Participants: 2

Read full topic

Reading Data from Pixhawk to Motor

$
0
0

@praveen_khm wrote:

Hi,

I have a Pixhawk 2.4.8 and have installed the latest Rover 4.0 fmuv2 firmware. This is my first build and not able to go further. I have attached two images of what I have done. The first one is the screenshots from Mission Planner and Second one is the output from Pixhawk Main Output (Motor Output) Pin 1.

Screenshots : https://pasteboard.co/J277u3W.png
Duty Cycle : https://pasteboard.co/J277Mjw.png

  1. I have connected Flysky remote using SBUS-PPM and receiver is working as shown in (Image1-Part1)
  2. Since I am working indoors, I have disabled AHRS_GPS_USE and ARMING_CHECK by setting it to 0. (Image1-Part2)
  3. There is no output on a custom display which is reading pin 1 yet. Frequency is Infinity (or junk value)
  4. Now when I press the safety switch, then it shows frequency 400Hz and Duty as 59% (sometimes it is 50%. I guess its about radio calibration)
  5. If you check the screenshots, Servo Output -> Servo 1 is set to GroundSteer and Servo 2 is set to Throttle. When I check frequency on Pin 3, it says 2000 Hz and duty as 50%. However, moving throttle stick does not make any change.
  6. When I switch the frequency check pin to pin 1, then moving the right joystick to the right changes duty cycle to 75% and moving it left changes duty cycle to 44% as shown in second image.
  7. Now I change the MOT_PWM_TYPE to 4 (since I want to use it as BrushedBIPolar) and reboot the board.
  8. I set servo output 1 to throttle left and servo output 2 to throttle right as per Image1-Part5.
  9. When I check the frequency and duty cycle now, there is no change on Pin1 or Pin3.

What I have is a rover with four wheels which has an Arduino based motor controller. Arduino board can read the duty cycle from two pins and take it further to control the four motors to control the robot. The robot is designed on skid steer mechanism.

What am I doing wrong? Since this is my first build, I have tried to understand and follow https://ardupilot.org/rover/docs/gettit.html link. However, it seems like I am not able to follow it right.

Can someone kindly check and help me?

Thanks,
Praveen

Posts: 1

Participants: 1

Read full topic

[GUIDED MODE] Command completion message?

$
0
0

@Kael_Kaczynski wrote:

In Guided mode, how can I determine when a command I have given the vehicle has been completed? For example, I am sending a MISSION_ITEM_INT. It transits to that location but does not reply with a MISSION_ITEM_REACHED message. What can I use to determine completion? Really, just knowing “Am I performing action?” or “Am I idle” would probably be sufficient.

Posts: 1

Participants: 1

Read full topic

Failed to load module on SITL

$
0
0

@Naor_Edry wrote:

I believe this is basic but i’m new to this so I can really use some help…

I’m using ubuntu 16.04 and i followed the instructions for the installation of ardupilot SITL ( Caleb Bergquist drone programming tutorial)

when i try to lunch arducopter simulation (sim_vehicle.py --map --console) i get the following error messages :

Faild to load module: No module named terrain.Use ‘set moddebug 3’ in the MAVProxy console to enable traceback
Faild to load module: No module named console.Use ‘set moddebug 3’ in the MAVProxy console to enable traceback
Faild to load module: No module named map.Use ‘set moddebug 3’ in the MAVProxy console to enable traceback

obviously, map and console did not open (full terminal screenshot below).

appreciate any help you can provide.

Posts: 1

Participants: 1

Read full topic

JST SH, ZH kits for beaglebone blue

$
0
0

@maximosipov wrote:

Hi All!

Not directly related to ArduPilot - but does anyone know if there are kits with JST SH, ZH connectors and crimping tool (for Beaglebone Blue assembly). I see many for 2.54 connectors but can’t find small ones…

All recommended assemblies are out of stock and getting connectors from Farnell etc. with multi-week leed times is a pain…

Sincerely
Max

Posts: 1

Participants: 1

Read full topic

Here+ large offsets

$
0
0

@Hannes_Verschore wrote:

I noticed something peculiar. I have 100+ drones all same build. Build over 1 - 2 years. As a result I I have different Here+ GPS modules.

some are (first batch):
COMPASS_DEV_ID: 466441 (HMC5883)
COMPASS_DEV_ID2: 592905
COMPASS_DEV_ID3: 131874

some are (second batch):
COMPASS_DEV_ID: 723977 (ICM20948)
COMPASS_DEV_ID2: 131874
COMPASS_DEV_ID3: 263178

Both have the AK09916 compass underneath if I understand correctly.
But I noticed that the second batch usually have larger offset after calibration. I decided to investigate a bit here. I tried with shielding to improve the situation, but failed. That’s were I started to get suspicious.

So I took a build from the second batch with large offsets.
After calibration I got:
ofs_x = 47, ofs_y = -166, ofs_z = -328

I removed the GPS and installed a GPS from the first batch (466441) and after calibration I got the following:
ofs_x = -68, ofs_y = -46, ofs_z = 11

This looks very strange. I would suspect that both GPS should give similar magnitude of order offsets. Since the build doesn’t change. I only changed the GPS module.

Is the HERE+ module with ICM20948 just a version with a bad compass (compared to first iteration)?
Or is there something going wrong in the calibration causing the larger offsets?

Posts: 1

Participants: 1

Read full topic

Strange position drift in loiter

$
0
0

@Alberto_Ds wrote:

Hi all!

I have a strange problem with my quad (4.0.3) 200mm 5 "Matek F405 CTR GPS radiolinkTS100, wifi telemetry. Occasionally it happens that it loses its position in loiter and drift always in the same direction. In this case it is sufficient to land disarm, arm and fly again and the problem disappears

In the attached log you can see the first flight where the problem occurs and the next flight where the problem does not exist. In the second fly, i use loiter, poshold, auto, circle and all mode fly well.
Also even if I’m flying 2 meters the telemetry also marks -4 meters … but this seems to be a problem of the Matek F405 CTR not resolved :frowning:

https://plot.dron.ee/YZ9p

Posts: 1

Participants: 1

Read full topic


ArduCopter for precision distance package deliveries - all the things that matter

$
0
0

@edobeirne wrote:

I’d like to open an ongoing discussion about package/cargo delivery by multicopters powered by ArduCopter. I’ve had a number of successes and failures to learn from, and I’ll bet you do too, or want to try.

The most crucial element of success seems to be the final few meters in navigating the package accurately to a very specific location and reliably leaving it there. I have done countless parachute drops, which are relatively foolproof but are not very sensitive to destination altitude accuracy, but they do require eventual retrieval of the parachute, and they can get caught in trees (ask me how I know). Having tried a blind package dropoff (not package_place command), trusting Mission Planner SRTM elevations, with failure, I now respect the need for much more accurate altitude control, whether by mission programming or by sonar or LIDAR.

I’d like to throw out a few topics and questions to get the conversation going. I will confess that my stated goal is to autonomously deliver a beer to a friend’s house in drinkable condition and have my quadcopter return safely home, and then repeat that for other friends. I’ll bet that you can come up with a similarly noble goal for yourself.

For the purposes of this discussion, let’s leave out the regulatory and legal implications of this hypothetical mission and talk about what it takes to do this on the hobby level, before Amazon, Google, etc. Give us your good ideas, knowledge, successes, and failures.

Issues:

  1. Does AC use only barometric altitude for Auto missions or does GPS factor into the altitude
    navigation?
  2. For programming missions, what is a reliable source of elevation data for Auto missions where
    altitude is critical?
  3. What are the best modes of package delivery, with pros and cons for certain use-cases?
    a. parachute
    b. slung cargo with slacked-line, fixed-altitude release
    c. slung cargo with sonar or LIDAR guided altitude release
    d. landing at destination, package release, takeoff and return to launch (can this even be
    programmed?)
    e. other release mechanisms
  4. How to interpret logged flight paths vs. programmed flight paths in Google Earth, etc.
  5. Release mechanisms (I have a great design for this)
  6. Special considerations, eg: does slung cargo affect sonar/LIDAR altitude calculation?
  7. Special hardware, eg: active winches, passive package lowering reels, dropped-slung cargo

Really looking forward to your interest and insight. There’s nothing so special as the smile on your friend’s face when you’ve flown him a cold beer, or your kid’s face when you’ve dropped her some candy!

Posts: 2

Participants: 2

Read full topic

Connecting Mission Planner to SITL on Linux Machine

$
0
0

@mgrindle wrote:

I am trying to connect Mission Planner running on a Win10 laptop to SITL on another laptop running Debian 10. I have everything working fine when I connect SITL to QGroundControl on the Win10 laptop. But when I attempt to connect to SITL with Mission Planner instead of QGC, I get stuck at “MAVLink Connecting” pop-up. I can then kill MP and QGC can be started and connected no problem.

I can start SITL either with the parameter --out=udp:10.100.xxx.yyy:14550 in the sim_vehicle.py command or enter “output add 10.100.xxx.yyy:14550” into MAVProxy.

In MP, I pick the UDP protocol, click on Connect, ensure the Port is 14550. I’ve also tried Port 14551. Both work in QGC but not MP.

Both laptops are connected via ethernet cables to a switch which is connected to a router. Both machines have static IP’s assigned by the router. Wireshark on the Win10 machine shows UDP traffic flow between the two machine for QGC. For MP, there is only traffic from the SITL laptop, never any return traffic from MP to SITL.

Does anyone have an idea how I can get MP working with SITL for my setup?

Thanks,
Mike

Posts: 2

Participants: 2

Read full topic

Bug in yaw expo range check?

$
0
0

@NicolasBosson wrote:

Hi everyone,

I noticed it’s currently not possible to set ACRO_Y_EXPO to any value smaller than 0.5, except 0.
The desired value (let’s say 0.3) is overwritten to 1 at next reboot.

Is this normal? If not, maybe the range check performed in Attitude.cpp, lines 21-23, should be replaced by something like this:

if (g2.acro_y_expo > 1.0f) {
    g2.acro_y_expo = 1.0f;
}
else if (g2.acro_y_expo < -0.5f){
    g2.acro_y_expo = -0.5f;
}

Since this part of the code was written 4 years ago by @Leonardthall and @rmackay9 and no one complained about it since then, I didn’t dare to open an issue on ArduPilot’s GitHub :sweat_smile:
Maybe I don’t quite understand how this parameter works?

Thanks for support!

Posts: 1

Participants: 1

Read full topic

Herelink operating system

Flight Controller Suggestion

$
0
0

@bersan1 wrote:

Hello everyone,
I want to buy an FC that is can be used for both plane and copter. I want to use max possible UARTs count and pin header solderable board at most. I have some boards in my mind. Matek F405-Wing and Kakute F7. Which is better or what şs your suggestion?

Posts: 1

Participants: 1

Read full topic

PX4 never reach the position asked

$
0
0

@Jimmy_Fraiture wrote:

Hello,

I have a problem with my PX4. So, he has a companion computer (RPi3) and with the companion I send a message SET_POSITION_TARGET_LOCAL_NED with some coordinate (the frame used is the good one)
Then I compare the position of the drone with the point and when he reach the point I do some stuff.
BUT : sometimes the drone do everything well but sometimes the drone goes to another point (3m away) and stop moving. But even if a re-send a SET_POSITION_TARGET_LOCAL_NED he still go to this point which is not the one I send.

Any idea why?

May it be due to the home_position or EFK or anything?

Thanks

Posts: 3

Participants: 2

Read full topic

Serial Servo PWM expansion board

$
0
0

@JeanPhilippeHell wrote:

Hello,

For a VTOL project I would need to add PWM ports to a Kakute F7 AIO board.

A while ago I made a firmware for Arduino Mini based on the AP_RC library.
It uses a home made protocol and the HDLC transport layer.

I was quite happy with this expansion board and today I could reuse it as it is.
But then I would have to add my protocol and library to ArduPilot, and I suspect the effort would be a waste of time.

I once used the Pololu serial to PWM boards but I don’t have them at hand now, and I am not aware of any use case with Ardupilot.

I am now leaning toward making a firmware which uses the MAVLink protocol to request the MAV_DATA_STREAM_RC_CHANNELS stream.
The board I plan to use is an Arduino Pro Mini

I am starting to read this topic :
https://discuss.ardupilot.org/t/mavlink-and-arduino-step-by-step/25566

My questions are :

  • Are there any similar and adopted project, namely using serial ports to expand the PWM ports on an autopilot HW, and ideally using an arduino board and MAVLink ?
  • Any suggestion about I could add PWM ports to a limited HW ?

Thanks, be safe at home :slight_smile:

Posts: 3

Participants: 2

Read full topic


Increase simulated quadcopter power to increase top speed?

$
0
0

@ardupilot123 wrote:

Hi,

I am running an arducopter SITL simulation in a vagrant virtual machine and when I set the desired speed in my GCS (QGroundControl) to 20m/s for example it will top out at 15m/s. I was wondering if there’s any way to increase the amount of power the simulated vehicle has to allow it to fly faster?

I have looked throughout the GitHub and can’t seem to find where the motor power is set. I found in the SIM_Motor.cpp file there is a function called calculate_forces which has an input parameter of thrust_scale which multiplies the calculated thrust by a fixed value which may help to increase the aircraft power. However I don’t know where this function is called in the simulation.

Any help on this topic would be much appreciated.
Thanks

Posts: 1

Participants: 1

Read full topic

Using different motor with different stator diameter and height for one side

$
0
0

@dogangcr wrote:

Hi,

One of the motor is not working, but I couldn’t find same motor.

My motor is eachine 2507 1800 kv motor.
I’m trying to find similar but 2507 is hard to find.
Should I use 2208 1800kv motor for one side for other three 2507 1800kv? According to this link

image

Can I use 2208 or other instead of 2507 ?
Is that possible ? What is your opinion?

Regards

Posts: 1

Participants: 1

Read full topic

EKF2 still initialising

$
0
0

@twistedwings wrote:

I’ve got this message which prevented arming.

image

What does it mean and how can I fix it ?

ArduCopter 4.0.3
Matek F405-CTR

Posts: 2

Participants: 2

Read full topic

Autotune results on Coaxial X8 Quad are OK need to improve - Help requested

$
0
0

@gnitzan wrote:

Hello friends,
Ran autotune on all three axes and did a test flight after for a few minutes.

sample for the ATT before Autotune

Looking at the logs, I see that the attitude is much much better but not that great, maybe it’s because AUTOTUNE_AGGR is set to 0.05 ???
ATT after autotune


link to test flight log
link to new params

Should I simply raise the aggressiveness of autotune and run it again?
Is any issue seems odd from the logs?
Please help.

Best,
Gal

P.S.
Cube Black
8 * 380KV motors
top props 16x5.5
bottom props 15x5.5
AUW 4.3kg

Posts: 1

Participants: 1

Read full topic

Power board distribuition for 3DR X8

Viewing all 46621 articles
Browse latest View live


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