Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 08:42
    alex31 opened #2716
  • May 06 18:18
    Fabien-B closed #849
  • May 06 16:02

    gautierhattenberger on v5.18

    [generator] move the extraction… (compare)

  • May 06 16:00
    gautierhattenberger commented #2715
  • May 06 14:48
    Fabien-B edited #2715
  • May 06 14:47
    fvantienen commented #2715
  • May 06 14:43
    Fabien-B labeled #2715
  • May 06 14:43
    Fabien-B opened #2715
  • May 06 14:30

    fvantienen on fix-wp_alt_enu_frame

    (compare)

  • May 06 14:23
    gautierhattenberger commented #2714
  • May 06 14:18

    gautierhattenberger on master

    [Generator] Throw error or warn… (compare)

  • May 06 14:18
    gautierhattenberger closed #2560
  • May 06 13:03

    Fabien-B on master

    [generator] move the extraction… (compare)

  • May 06 13:03
    Fabien-B closed #2713
  • May 06 13:03
    fvantienen commented #2714
  • May 06 12:50
    gautierhattenberger opened #2714
  • May 06 12:50
    gautierhattenberger labeled #2714
  • May 06 12:50
    gautierhattenberger assigned #2714
  • May 06 12:50
    gautierhattenberger labeled #2714
  • May 06 12:41
    gautierhattenberger opened #2713
GitHubber14
@GitHubber14
We are trying to use the image_labeling function from the blob_finder.c file. We included the corresponding header file, blob_finder.h, in our code, however when compiling the error "undefined reference to `image_labeling'" keeps showing up. There seems to be no problem with other functions we use from other files when we include the corresponding header files. What makes this one unique?
Felix Ruess
@flixr
that's a linking error because you haven't added the .c file to your sources...
as google will also tell you ;-)
GitHubber14
@GitHubber14

[video] Could not write register 3ED8
Da: FFF8
Dt: FFF8
Done!
Current schedparam: policy 0, prio 0
New schedparam: policy 1, prio 29
Current schedparam: policy 0, prio 0
New schedparam: policy 1, prio 10
[v4l2] Could not set data format settings of /dev/video1
[video_thread] Could not initialize the /dev/video1 V4L2 device.
Segmentation fault (core dumped)

When reading out our drone before flight, we see the previous message in the terminal, leading to a fatal software error. Any idea why suddenly problems appear in the video module? We did not modify this.

Yannick Jestin
@yannickj
are you sure /dev/video1 is both readable and writable by your user ?
perhaps a udev rule and/or a chmod might be a solution
diardanoraihan
@diardanoraihan
excuse me guys, what is exactly the difference between RC and COMMAND messages in the messages tool ?
why the value for both messages are different ?
RC messages Papatong.JPG
this one is RC message that looks normal ( MAX 9600, MIN -9600, NEUTRAL 0 )
masalah papatong.JPG
diardanoraihan
@diardanoraihan
and this one is COMMAND message tool, which is normal for Throttle and Yaw, but not with Roll and Pitch values
@flixr i have done my best to set up my DX6i transmitter, calibrate, set neutral and end point, etc, clean the pot gymbal with alcohol, but the result is just like before :(
Gautier Hattenberger
@gautierhattenberger
@diardanoraihan this mapping should be done in the rc_commands section of your airframe. What does it say ?
diardanoraihan
@diardanoraihan
thanks for respon @gautierhattenberger
did you mean what i write in rc_commands section ?
<rc_commands>
<set command="THROTTLE" value="@THROTTLE"/>
<set command="PITCH" value="@PITCH"/>
<set command="YAW" value="@YAW"/>
<set command="ROLL" value="ROLL"/>
</rc_commands>
Gautier Hattenberger
@gautierhattenberger
yes, except the last line that should be <set command="ROLL" value="@ROLL"/>, RC and COMMANDS should be the same in manual mode (not in other modes)
diardanoraihan
@diardanoraihan
yes, of course that must be @ROLL, my bad typing :)
what do you mean "not in other modes" ? are the values different ?
Gautier Hattenberger
@gautierhattenberger
in other modes, the commands are set by the autopilot, not directly by the RC, so values can be different
diardanoraihan
@diardanoraihan
actually that values came from AUTO1 mode mr @gautierhattenberger
sulit ganti mode.JPG
as you can see the currently status is AUTO1
i got headache when this question comes to me : " Why the default mode is AUTO1 ?" i've done nothing but AUTO1 seems appearing first.
Gautier Hattenberger
@gautierhattenberger
then values in RC and COMMANDS messages can be different
can you change mode or not ?
diardanoraihan
@diardanoraihan
when i try to change the Flight mode via pprz_mode to MANUAL, it doesn't want to change
not mr @gautierhattenberger , help me :(

i use this to change the mode

<define name="RADIO_MODE" value="RADIO_FLAP"/>

with my FLAP switch in DX6i, and nothing happen
so when i try to change it via GCS in Notebook > Settings > Mode > pprz_mode > MANUAL, but it doesn't want to change to MANUAL, it keeps staying in AUTO1
Gautier Hattenberger
@gautierhattenberger
maybe it is just that it is looking at the wrong channel
because if it reads 0, you'll have AUTO1 as a result
you can't change from the GCS when the RC is ON since RC has priority
first check that the channel corresponding to radio flap is the correct one
since you have a spektrum RC, it is fixed and should be channel 5
(starting from 0, so sixth channel)
diardanoraihan
@diardanoraihan
Alright then mr @gautierhattenberger
Thanks :)
Shubham Vyas
@kill2win
How does one send data from a program running on the GCS computer to the drone ?
Felix Ruess
@flixr
@kill2win you can basically send any message of the datalink class to the drone
if you are running your program on a host in the ground network, then the easiest is to publish that message on the Ivy bus: https://wiki.paparazziuav.org/wiki/Ivy
you can e.g. do that easily from a python script using https://github.com/paparazzi/pprzlink/blob/master/lib/v1.0/python/ivy_msg_interface.py
Felix Ruess
@flixr
what kind of data do you want to send?
Shubham Vyas
@kill2win
I would like to recieve the video stream to opencv, make decisions and send those back (in the form of an array)
Felix Ruess
@flixr
ah, so we are talking about a Parrot drone?
video you can receive via RTP, the command you send up would be via the normal PPRZ protocol
depending on what exactly you want to send you either have to create your own message or use one of the existing ones
see http://docs.paparazziuav.org/latest/paparazzi_messages.html#DATALINK_CLASS
there is e.g. the possibility to issue high level commands like goto position, move at velocity, etc...
or more low level attitude commands
Shubham Vyas
@kill2win
I can recieve the video. And I'd like to send high level commands. (Go to)
Felix Ruess
@flixr
you could put the quadrotor in guided mode and send GUIDED_SETPOINT_NED messages, see
https://github.com/paparazzi/paparazzi/blob/master/sw/ground_segment/python/guided_mode_example.py
adamczer
@adamczer
Hello all, I am currently trying to compile the paparazzi source code into a shared library, but am having difficulty in making this work. Does anyone here have experience in doing this or could provide guidance on where the appropriate arguments could be added to the build? I tried multiple places as early in the build however could not get it to create the shared library.
Felix Ruess
@flixr
hi @adamczer shared lib of what exactly?
adamczer
@adamczer
@flixr, I am trying to make the airborne and simulation a shared library. The reason for this is to eventually port the paparazzi functionality to java. My desire is to call things over jni and eventually move the airborne modules over to java, and continue to use JSBsim through jni for simulation purposes.
Felix Ruess
@flixr
hm... the simulation is not meant to be compiled into a shared lib (as it contains a main)