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

Controlling pitch,yaw and roll for object tracking

$
0
0

@vahit.lafci wrote:

Hi. We have an apm 2.8 flight controller.

With the help of opencv mobilenet and raspberry pi 3, we need to design a drone for object tracking as a senior project to graduate(We’re focused on a car at the moment.)

We will write python scripts including a pid controller. We need to control drone’s directional elements (roll,pitch etc). using python.

How shall we do it?

Mavlink’s commands seem to a little bit complex for me. If there is a python library, that would be perfect.

Dronekit can control velocity but it controls directions parallel to north-south and west-east directions, not drone’s direction.

Mission planner’s python scripting commands (Script.sendrc, cs.yaw etc) are perfect but we need to run in a terminal which is outside of mission planner software

Do you have any suggestions?

Thanks.

Posts: 2

Participants: 1

Read full topic


Mission Planner Heli Setup Page Grayed Out

$
0
0

@Tudole wrote:

I followed the instruction and attempting to build AC3.5.5 firmware myself. For some reason when use my own built firmware, the Heli setup page is grayed out, and it seems like many parameters are not appearing in the full parameter list either. If I use the firmware downloaded, this page is fully functional, and I can see the full parameters.

Any help will be appreciated!

Posts: 1

Participants: 1

Read full topic

Is Position Drift Nomal "on the bench"?

$
0
0

@OldGazer wrote:

Scenario:

Quadcopter is on the bench.
Pixhawk is powered by USB.
Pixhawk is connected to Mission Planner.
RC Transmitter is OFF.
M8N GPS has a 3D fix with 14 Satellites. HDOP = 0.81

With a map zoom level higher than 16.0 the aircraft icon wanders randomly.

Is this “drift” normal or not?

A brief explanation will be appreciated.

Thanks

Posts: 1

Participants: 1

Read full topic

Need Source: SkyViper V2450GPS with 2x Batteries and 16GB MicroSD (upc 816322018124)

Pixracer PX4FLOW optical flow

$
0
0

@Shobhit_Mehrotra wrote:

Hi I am trying to use the pixracer and the px4flow camera. Im running 3.5.4 and when I connect the px4flow I get bad opt flow health in HUD. When I connect the same px4flow to the normal pixhawk running the same firmware it works fine I get opt_x and opt_y data. Is there a difference in the firmware for the pixracer (px4_v4) vs the normal pixhawk (px4_v2)? Has anybody had success connecting the px4flow to the pixracer? I read from Guilaume’s in March '17 post that the oflow was disabled for V3.4 but is that the case for V3.5 and if so how would I re-enable it?

Thanks!

Posts: 3

Participants: 3

Read full topic

Xplane 11 with mission planer

$
0
0

@yak-54 wrote:

is there a trick to get them to talk to each other windows10 pc xplane 11
been at it for days i trolled the net lots info for xplane 10 just not 11

Posts: 1

Participants: 1

Read full topic

How to add item to param list

$
0
0

@111133 wrote:

I want to add up down list control using mission planner control…
It need some parameter item maybe…

so I try to add param item to paramlist… but I can’t make it…

How to add item to param list and make contorl???

Posts: 1

Participants: 1

Read full topic

Compiling ArduPilot with more recent compilers?

$
0
0

@hsteinhaus wrote:

Ardupilot traditionally relies on a very mature 4.9 version of gcc/c++. Since then, gcc has improved vastly when looking at warnigns generated for common coding errors. Personally, I would really like to profit from these improvements, but this is currently not possible, as AP simply doesn’t compile when using e.g. gcc 7.1.0.

The reasons are mostly due to some marginal code style issues. So most libraries include cmath instead of math.h, but still use isinf() or isnan() without caring about namespace prefixing (they are in std:: now).

Are there any plans (or even work in progress) to improve the situation here? If not - are PRs welcome about this topic?

Regards,
Holger

Posts: 7

Participants: 3

Read full topic


Fly away my little friend

$
0
0

@Leztec wrote:

So today thought I’d have a quick fly around the local field . Well seems I lost a friend. had GPS lock on 14 satellites fresh batterys in the controller and drone, tho nope didn’t want to play with me anymore. So just took off and left me in the middle of the field.

Posts: 6

Participants: 4

Read full topic

Build error [task in 'px4_msg_gen' failed (exit status 2)]

$
0
0

@Anis_Koubaa wrote:

Hello

I have installed correctly Ardupilot from sources.

I have a problem with building with px4

I first run configure as follows

riotu@ubuntu:~/ardupilot$ ./waf configure --board=px4-v2
Setting top to                           : /home/riotu/ardupilot 
Setting out to                           : /home/riotu/ardupilot/build 
Autoconfiguration                        : enabled 
Setting board to                         : px4-v2 
Checking for program 'arm-none-eabi-ar'  : /usr/bin/arm-none-eabi-ar 
Using toolchain                          : arm-none-eabi 
Checking for 'g++' (C++ compiler)        : /usr/bin/arm-none-eabi-g++ 
Checking for 'gcc' (C compiler)          : /usr/bin/arm-none-eabi-gcc 
Checking for HAVE_CMATH_ISFINITE         : no 
Checking for HAVE_CMATH_ISINF            : no 
Checking for HAVE_CMATH_ISNAN            : no 
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : no 
Checking for NEED_CMATH_ISINF_STD_NAMESPACE    : no 
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE    : no 
Checking for header endian.h                   : not found 
Checking for header byteswap.h                 : not found 
Checking for program 'cmake'                   : /usr/bin/cmake 
Checking cmake version                         : 3.5.2 
Checking for program 'ninja, ninja-build'      : not found 
Checking for program 'make'                    : /usr/bin/make 
Checking for program 'python'                  : /usr/bin/python 
Checking for python version >= 2.7.0           : 2.7.12 
Checking for program 'python'                  : /usr/bin/python 
Checking for python version >= 2.7.0           : 2.7.12 
Source is git repository                       : yes 
Update submodules                              : yes 
Checking for program 'git'                     : /usr/bin/git 
Gtest                                          : PX4 boards currently don't support compiling gtest 
Checking for program 'arm-none-eabi-size'      : /usr/bin/arm-none-eabi-size 
Benchmarks                                     : disabled 
Unit tests                                     : disabled 
'configure' finished successfully (0.551s)

Then, I build for px4-v2 as:

riotu@ubuntu:~/ardupilot$ ./waf copter
Waf: Entering directory `/home/riotu/ardupilot/build/px4-v2'
[14/15] CMake Build px4 msg_gen
make: *** No rule to make target 'msg_gen'.  Stop.

Waf: Leaving directory `/home/riotu/ardupilot/build/px4-v2'
Build failed
 -> task in 'px4_msg_gen' failed (exit status 2): 
	{task 140710585567184: cmake_build_task  -> }
['/usr/bin/cmake', '--build', '/home/riotu/ardupilot/build/px4-v2/modules/PX4Firmware', '--target', 'msg_gen']

Note that I was able to build fine for navio2 and sitl, but not px4

How can I solve compilation issue for px4?

Thanks
Anis

Posts: 1

Participants: 1

Read full topic

Pitch Instability at high airspeeds

$
0
0

@Naterater wrote:

Has anyone noticed a pitch instability at high airspeeds with foam planes? I’m wondering if it’s more a function of the airframe itself or the scaling of the PID values. I normally cruise and autotune around 15m/s, but when I push beyond 30 m/s, the airframe begins to pitch oscillate a little slower than 1 Hz.

The pitch tune is solid for lower airspeeds. Roll is good at all airspeeds.

Posts: 1

Participants: 1

Read full topic

Sky Viper bargains

$
0
0

@Dude wrote:

Toys-R-Us closing all stores. Might be able a pick up a bargain on a Sky Viper model

Posts: 1

Participants: 1

Read full topic

MinimOSD THR stuck at 50%

$
0
0

@yak-54 wrote:

Hi all i have MinimOSD that keeps showing 50% throttle in the osd
i tough it was the osd so i re flashed with new firmware
same thing 50% throttle

so i did the same with the pixhawk updated to 3.8.4 plane then it worked but as soon as i upload my param file it went back to showing 50% throttle
anyone know what in a param file that could do this got me beat

rycbo.param (14.3 KB)

Posts: 4

Participants: 2

Read full topic

SiK module lost connexion and cannot recover

$
0
0

@Paul_Faugeras wrote:

Hi all,

I have an issue that is driving me mad…
I (with a team of 5) have been building and flying a F550 on ArduCopter for a challenge.
it is using a SiK module for communicating with the ground.
Unfortunately, we recently had issues when connecting with the telemetry modules (it connected to the copter : green static LED, but not with the computer on both Windows and Linux).
So we decided to upgrade to a newer version of the SiK firmware (2.0) with QGroundControl. Only, after updating the ground module, QGCS reinitialized the net_ID of the module, as well as all its other parameters, and of course, we lost the connexion with the air module for good (blinking green LED), since the parameters are not the same on both modules (we didn’t think about saving the parameters beforehand).
We also discovered that there is no way of connecting the onboard module to the computer via the PixHawk board. So we tried connecting the module with a USB-to-Serial adaptor (from an Arduino board), but didn’t manage to connect.
Would there be any other way to set (or reset) parameters, or update it the air module in order to regain connexion with the ground module ?

I found a PixHawk passthrough to update the module, but it’s getting quite old, and didn’t work for me :slight_smile:https://groups.google.com/forum/#!msg/drones-discuss/-AhcK5G0FPQ/gib6MrespgUJ

Here is the USB-to-Serial adaptor I used (sorry, it’s in Indonesian):


& also tried with this resistance mod:
https://forum.arduino.cc/index.php?topic=458961.0

Btw, I tried on all those platforms:

  • DroneKit (Ubuntu)
  • QGroundControl (Ubuntu)
  • APM Planner 2 (Ubuntu)
  • Misssion Planner (Win10)
  • Sik Radio Config (Win10)

Thanks in advance !

Posts: 1

Participants: 1

Read full topic

Compass set and calibration questions

$
0
0

@FireFly wrote:

Hi, I am using Pixhawk autopilot on my quadcopter. Everything is good with flying except the compass calibration, it’s not convenient to calibrate compass by using the whole copter, what I am thinking is just rotate the external compass sensor. Meanwhile I will set to only external compass, turn off the internal onboard compass!
I don’t know if this idea is workable.

Posts: 2

Participants: 2

Read full topic


SITL X-plane - mapping servos to datarefs?

$
0
0

@Andrew_Rabbitt wrote:

I’m currently having a hack at the SITL code to see if I can map the servos to various control surfaces within X-plane via using dataref UDP packets to drive individual features as if they were actual servos rather than the current send data method.

I’ve managed to get some data into X-plane to configure the overrides I need but I’m struggling to get my head around how the servo mapping works and how I can know what each mapped servo PWM value might be.

Is there a variable I can peek at to do this? I’m seeing the input.servos[x] parameter as it’s used in the Xplane::send_data routine but this code beginner numpty can’t figure out how that traces back to where it is defined.

Any clues here?

Posts: 3

Participants: 1

Read full topic

Difference between GLOBAL_POSITION_INT_COV and GLOBAL_POSITION_INT

$
0
0

@AleksanderSawicki wrote:

Hello.
I would like to ask if there is any difference in position (lat and long) in frames GLOBAL_POSITION_INT_COV and GLOBAL_POSITION_INT. Is difference only in Covariance matrix?

Posts: 1

Participants: 1

Read full topic

Can not change flightmode over RC, MissionPlanner works

$
0
0

@count74 wrote:

Hi,

if I try to change the flightmode to acro or steering over RC Channel 8, I get “Flightmode change failed”.
It works fine over Missionplanners “Actions” tab. I can change between Manual and Hold via RC.
I am using wheelencoders (GPS deactivated) and Ardurover 3.3.0dev on a Pixhawk (PX4v3).

Posts: 2

Participants: 2

Read full topic

Here + RTK Data logging

$
0
0

@Andrew1 wrote:

Hi guys and gals.

We have recently upgraded to a here + system.

I would like to find out if there is any way of typing in the co-ordinates (Instead of waiting for a certain amount of time to get a certain accuracy) forcing it to a co-ordinate measured using a survey grade GPS?

The reason being that we cannot always wait to fly as we do multiple flights per day at multiple sites.

Secondly does anyone have any suggestions with regards to a PPK system?

Thanks in advance for the assistance!

Posts: 8

Participants: 3

Read full topic

Altitude continue increasing while land mode was requested

Viewing all 46742 articles
Browse latest View live


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