Quantcast
Channel: ArduPlane - ArduPilot Discourse
Viewing all 7665 articles
Browse latest View live

RCIN and RCOUT not in DataFlash logfile

$
0
0

@Quax86 wrote:

Hello,
trying to analyze the DataFlash logs, I was surprised to not find the RCIN and RCOUT categories in them. I included a link to a logfile below. The RCIN and RCOU parameters appear in the FMT messages, but not in the logs themselves. A logfile can be found here:
https://drive.google.com/open?id=1OynB0EAZfOTGL4Y_OuKgRNpmbUJGCcAK
About the setup:
I am running a Holybro Pixhawk with ArduPlane V3.8.5. The Parameter LOGBIT_MASK is set to the maximum, which as standard for the Pixhawk hardware. I am using a Raspberry Pi companion computer, that connects to the Pixhawk using the second telemetry port and runs a MAVProxy script. It records the telemetry as well as downloads the DataFlash Logs. Further more, it records data from other sensors.
So far, it had worked quite good with GPS information, so I am a bit surprised to not find the RC being logged.
Can somebody give me a hint about how to fix it?
Kind regards,
Sebastian

Posts: 1

Participants: 1

Read full topic


Low GPS Speed causes dive into ground

$
0
0

@RobH wrote:

I have a flying wing with a Pixhawk Mini and airspeed sensor running Arduplane 3.8.4. It has operated well for many missions. I have recently had two bad nose dives (called Max 8 crashes) which seemed the same but the telemetry says different.

The first from stable flight at 50m AGL at 14m/s airspeed into wind of 6m/s:
I triggered the problem by manually nosing over to a 45 degree dive by mistake. However, switched to stabilize within a second and it did not pull out. It appears the 45 degree dive caused the GPS speed to reduce below Min (it should by geometry) and so although the air speed was fine I believe Ardupilot thought it needed to speed up and did not try to pull out until too late. It was low and hit the ground before I reacted. GPS speed dropped rapidly to 1.3m/s and then increased to 7.5m/s. Airspeed increased uniformly to 32m/s. Airspeed_FBW_Min is set to 9m/s, Max is 22. Is this a known effect on ground speed causing trouble? Is the GPS speed taking priority over air speed? If you would like to look at this further I can attach the bin file.

The second crash looked the same but was different because it was already at high air (24m/s) and ground speed (20). It tried to pull a hard turn at 45 degrees bank and then appears to have not had elevator authority to pull up but it also did not try hard. It held in the 45 degree bank and up elevator mixed on the elevons. But both speeds increased. Neither elevon was at max travel, in fact the inside elevon is near neutral in a turn to effect the turn. I don’t find a fault and wonder if this is a problem of a wing and elevons being unable to pull a hard turn and pull out of a dive. If I had worked it out I would have reduced ailerons and so enabled more pull up. But from 35m it hit the ground first. Another stunned mullet reaction!

So as not to cause concern; you will see I fly at an airfield but I monitor the CTAF and would land if traffic called in.

Thanks,
Rob

Posts: 1

Participants: 1

Read full topic

Regarding the BeagleBone Blue sbus receiver

Misleading message "Flight plan update rejected" and possible bug?

$
0
0

@krisgry wrote:

Hi,
I’m sending a list of mission items to ArduPlane from a companion computer. Everything seems to work, but I’m a bit confused by the warning message I get from AP, so I’m wondering if my understanding is wrong or if the warning message is missleading and there might be a bug in the mission count pack/write partial list interaction.

The scenario (Mostly in GCS_MAVLink/GCS_Common.cpp):

  1. I send a mission count pack, which indicates that my mission has 4 mission items. This results in AP setting waypoint_receiving = true, waypoint_request_i = 0, waypoint_request_last = count (which is 4). But mission.num_command() remains unchanged (0 (at startup), and not 4, since mission.truncate does not extend the size of the mission, it only shortens it if count > num_commands)
  2. I send a write partial list message, with start=0 end=4. Since end>num_commands this only has the effect that a message saying “Flight plan update rejected” is returned. I.e. the start and end indexes are discarded, and waypoint_request_i/last are not updated.
  3. since wp_receiving was set to true in step 1, GCS_MAVLINK::update will send MSG_NEXT_WP, which will request a mission item with seq=waypoint_request_i.
  4. I respond to the mission request by sending the correspoinding mission item back, which is handled by AP in handle_mission_item, which requests a new item or acknowledges the mission upon completion of the transfer (Also sending positive feedback “Flight plan received”)

So: is my understanding correct? If so, I think that the “Flight plan update rejected” message is misleading, since the flight plan is in fact updated. Also; given the above, write partial list seems superfluous when sending a mission that is larger than the current mission, as start/end is discarded, making it impossible to only update a part of the plan.

Appreciate any thoughts/inputs,
Kristoffer

Posts: 1

Participants: 1

Read full topic

Auto takeoff into wind

$
0
0

@yak-54 wrote:

in auto mission at my field has north and south runway and my mission has 12 way point takeoff and land 90% of the time the wind is coming from the south so i the first way point is at the south takes off and lands fine
but some times its from the north to i need to take off into the wind this ok but when it takes off it always wont’s to turn to the left just after take to the first way-point and theirs trees to the left
is there a way to get to turn right to the first way-point ?

Posts: 2

Participants: 2

Read full topic

TiltRotor VTOL Setting Up Questions

$
0
0

@T.erkam wrote:

Hello. I am very new to Mission Planner so I have couple of questions to setup my VTOL aircraft.

Firstly, my project is a tilt rotor quadplane which two front motors are tilting. I use Pixhawk PX4 for this project and I have Turnigy 9x as my transmitter. Up until now I could run my motors and servos with throttle, aileron etc. setup at servo output page. But I couldn’t setup it as a VTOL and I couldn’t run my motors as drone mode.
This is the Pixhawk I am using:
27c340d15a9e37621bd484743f57588ad67b0d52

These are the parameters that I changed:

Here are the questions:

  1. I couldn’t understand where to connect my motors at PixHawk or how I setup channels in servo output page (Shown in above). I tried couple of things but I couldn’t figure it out.
  2. How I setup my tilt rotors servos and what output should I connect at Pixhawk. I could manually control them from Auxillary channel but I couldn’t understand how it works in firmware.

These are the fundamental problems that I stucked and couldn’t move on. I hope I have explained myself clearly. If you help me out I would be very thankfull.

Posts: 1

Participants: 1

Read full topic

Not able to build Ardupilot with waf and etc

$
0
0

@ujjwalrathod007 wrote:

I have issues to build using waf based systems… I get following error when I do “sim_vehicle.py -w” . Any recommendations?

Waf: Entering directory /home/ujjval/ardupilot/build/sitl' Waf: Leaving directory/home/ujjval/ardupilot/build/sitl’
source not found: ‘modules/mavlink/message_definitions/v1.0/ardupilotmega.xml’ in bld(target=’’, idx=1, tg_idx_count=1, meths=[‘process_mavgen’, ‘process_rule’, ‘process_source’], _name=‘mavlink’, source=‘modules/mavlink/message_definitions/v1.0/ardupilotmega.xml’, export_includes=[’/home/ujjval/ardupilot/build/sitl/libraries’, ‘/home/ujjval/ardupilot/build/sitl/libraries/GCS_MAVLink’], output_dir=‘libraries/GCS_MAVLink/include/mavlink/v2.0/’, path=/home/ujjval/ardupilot, posted=True, features=[‘mavgen’]) in /home/ujjval/ardupilot

How to build using waf?

I must download waf sources and then paste it to my /modules/waf directory and then I sould run following commands?

./waf configure
./waf plane

but that also gives me above error.

Posts: 1

Participants: 1

Read full topic

Lost attitude control of the airplane during loiter descend


I am starting my bbblue, I encountered an error message

Q_tilt_mask confuse!

$
0
0

@FLYDEM wrote:

Hi dear friends
İ astablished h frame quad plane.

I have a problem with my vtol setup, with is about tilt rotor.
Actually i know how to fix 4 tilt 4 servo and motor tilt system but i want to use only from engines as a tilt. So i need what is the true number such as (tricopter vtol number is 2+1). What is the quadcopter number? İs it 2+2? When i make Q_tilt_mask 4 and


flight modes engines stop when i tilt or when engines work 4 engines work together that’s the problem. Pls help me and is there another thing some thing to do.?

How i stop rear motors when i change Mode to fbw?

Posts: 3

Participants: 2

Read full topic

Autotune changing acro values under the hood

$
0
0

@cyber_06_wolf wrote:

This one took me quite some time to find. I used to think autotune was just setting up very “conservative” values resulting in a slow ACRO roll rate after autotune. I tried manually increasing P gains and it wouldn’t help.

I had configured http://ardupilot.org/plane/docs/parameters.html#acro-roll-rate-acro-mode-roll-rate to be 360 deg/s, but after autotune the plane was rolling much slower. I would always end up reverting to the tune before autotune and flying that way. I ended up doing a compare on the complete parameter list and found that three RMAX values were being set that override the ACRO_PITCH_RATE and ACRO_ROLL_RATE. By default the RMAX values are all 0, meaning the two rates above are in effect. Then after autotune they typically end up around 60-75 deg/s. I tried setting them back to 0 and doing another autotune hoping that some flag would be set to not alter the RMAX values but that’s not the case.

Here are the values that autotune sets, which override the acro rates I was trying to achieve:
http://ardupilot.org/plane/docs/parameters.html#ptch2srv-rmax-up-pitch-up-max-rate
http://ardupilot.org/plane/docs/parameters.html#ptch2srv-rmax-dn-pitch-down-max-rate
http://ardupilot.org/plane/docs/parameters.html#rll2srv-rmax-maximum-roll-rate

I believe there should be a way to autotune with the desired ACRO rates, and feel that these conflicting parameters are an artifact of updated code. Does anyone have insight on the history of these parameters and if this should be corrected?

Posts: 2

Participants: 2

Read full topic

Tiltrotor Quad VTOL, Q_ Modes Issues

$
0
0

@Tugrul wrote:

Hello everyone,

First of all, I would like to say that this is a great community, seeing so many people that is willing to help others. I have an entry in the “Tiltrotor support for plane #2” post but wanted to also post it here.
Now with my issues: Me and my friends are trying to build a QuadPlane Tilt-Rotor with all rotors tilting.We were able to tilt the rotors when the plane is switched from MANUAL or FBWA to QSTABILIZE. We have everyting set but we have one major issue:

When in MANUAL mode everything is looking good. I can see from the “Servo Output” tab, the throttle I’m giving and Pixhawk responds accordingly. BUT when we switch to “QSTABILIZE” mode we can’t see any output to throttle or any output for that matter whatsoever. And from what I understand in QSTABILIZE mode the VTOL should act like a Quadcopter, which means the control surfaces should not move , BUT they do for some reason; only the rudder remains stationary.

I have set the ARMING_REQUIRE to 0 in order to arm the vehicle since not all the calibration is done. I’ve checked the wiring again and again which seems fine. Radio calibration is alson working fine. Since I can not give any output to the motors I can’t do the ESC calibration with Q_ESC_CAL =1.

I really hope you guys can help out. I am including some attachments below with a picture of the VTOL.

Have a great day, thanks!

paramsT.param (16.5 KB)

Posts: 1

Participants: 1

Read full topic

X-wing quadcopter

$
0
0

@ITZIK_RONEN wrote:

What configuration should I use if I want to build an X-Wing quadcopter? Like this picture but with 4 motors at the tip of the wings?

X-Wing-02-icon

Posts: 1

Participants: 1

Read full topic

GCS Failsafe settings

$
0
0

@Yannicflight wrote:

Hello everybody,
I have a question regarding GCS failsafe settings.

Currently when flying in Cruise or Guided I sometimes get to the edge of my RC range, this will trigger my THR_FS so the plane will firstly Circle for FS_Short and then RTL if FS_long time is expired.

But the behaviour I would like to achieve is that the plane keeps flying if it is in Cruise or Guided for as long as the GCS is still connected and Mavlink heartbeats are received. I only want the FS to switch to RTL in the event of a RC and GCS link loss. I looked at the FS_GCS_ENABL function but i cannot find how I should configure it to behave as described above.

And if Iam right, switching off the THR_FS can introduce an event where no RTL / failsafe is triggered because Arduplane doesnt recognize a failsafe event ?

If somebody could help me a little with this it would be greatly appreciated.

Thanks in advance

Posts: 1

Participants: 1

Read full topic

SITL in X-plane: Tx/controller direct to SITL...?

$
0
0

@Andrew_Rabbitt wrote:

Has anyone coded APM so that the RC Tx input goes directly to the SITL code rather than via interpreting the X-plane’s version of the joystick pitch/roll/yaw?

I am trying to decouple the yaw signal that is driving the differential thrust vectoring on my model so that APM can control it but twiddling the yaw stick interferes with it.

My backup is to direct the yaw channel out via a mixture slider or somethong but this feels like building a house of cards from kludges. :frowning:

Posts: 2

Participants: 1

Read full topic


Plane crash with almost no reason urgent help needed

$
0
0

@AJack wrote:

Hello fellows builders
After more than 10 takeoff attempts still crashing and can not identify the reason. In question is a zeta fx-79 buffalo, 3.2kg auw.

On the ground all control surfaces where triple and double checked , cg is right on the spot. So far all the crashes where nose dives soon after takeoff.
Attached is the log from the last attempt
https://drive.google.com/file/d/1SoCMfm3kE73DRdAfz-bL2IwP_MykhAx7/view?usp=sharing

Any info greatly appreciated!

Posts: 1

Participants: 1

Read full topic

Nimbus VTOL LOGS PH 2.1

Strange elevator response to stick in FBWA and Manual mode

$
0
0

@wcfung1 wrote:

When I give full UP elevator by pulling the elevator stick all the way down and HOLD it, the elevator first deflects fully, but followed shortly (about 1 second) by returning to neutral position. This happens in FBWA and Manual mode in Arduplane V3.9.6

But when I give full DOWN elevator by pushing the elevator stick all the way up and HOLD it, the elevator deflects fully and stay there, NOT returning to neutral position in both the above 2 modes.

Is this normal ? If yes, what is the logic behind ?

If my plane is powerful enough, and I need full UP elevator during takeoff (say to clear some obstacle), this returning to neutral of the elevator is undesirable.

Volantex Ranger EX 757-3, Pixhack 2.8.4., Arduplane V3.9.6

Can anyone shed some light on this issue. Thank you.

Posts: 1

Participants: 1

Read full topic

Matek F405 wing won't boot without USB first

$
0
0

@cyber_06_wolf wrote:

I’m having a very strange issue… If I use just a battery, I can’t get servo outputs. If I plug in a USB first, then a battery, everything works fine. I took a multimeter and all the voltage rails are showing the proper voltages. If I hook up a battery and then the USB it doesn’t work either. It has to be USB first, then battery. I can’t get any sort of logs out of the FC, is there an issue with it?

Any clues? I took a video of the issue
https://youtu.be/EACz_oE1_7I

Posts: 1

Participants: 1

Read full topic

PX4 boot f\and firmware upgrade failure

$
0
0

@pi9eon wrote:

I just bought a PX4. (Pixhawk 2.1 - px4v3)
When I power up my PX4 it goes through the orange LED’s and a few tones and then finishes with a tone like “bah bom” and LED’s off. No green.
I try plugging in to Mission Planner and it’s detected OK. when I hit connect
I try a firmware update using Arduplane v3.9.8. MP asks if it’s a “CubeBlack” (I assume it is because it has the black Cube on its back.) The flash appears to work ok but same issue “bah bom” tone and no green LED’s
Any ideas or help greatly appreciated as I am a total nube.
PS. Should I see it in Windows device manager?

Posts: 2

Participants: 2

Read full topic

Viewing all 7665 articles
Browse latest View live