by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 24 20:35
    Travis paparazzi/paparazzi@603c0c1 (pprzlink_update) passed (8126)
  • Sep 24 20:10
    gautierhattenberger labeled #2590
  • Sep 24 20:10
    gautierhattenberger review_requested #2590
  • Sep 24 20:10
    gautierhattenberger opened #2590
  • Sep 24 20:09

    gautierhattenberger on pprzlink_update

    [pprzlink] fix bug in request m… (compare)

  • Sep 24 14:55
    Travis Fabien-B/paparazzi@621ee7e (move_waypoint) passed (6)
  • Sep 24 13:38
    Travis Fabien-B/paparazzi (master) passed (4)
  • Sep 24 13:14
    Travis Fabien-B/paparazzi (libs_python) errored (3)
  • Sep 23 23:00
    gautierhattenberger reopened #2589
  • Sep 23 23:00
    gautierhattenberger closed #2589
  • Sep 23 23:00
    gautierhattenberger commented #2589
  • Sep 23 17:56
    OpenUAS edited #2589
  • Sep 23 17:53
    OpenUAS commented #2586
  • Sep 23 17:52
    OpenUAS commented #2586
  • Sep 23 17:51
    OpenUAS commented #2586
  • Sep 23 17:46
    OpenUAS commented #2586
  • Sep 23 17:43
    OpenUAS commented #2586
  • Sep 23 17:41
    OpenUAS commented #2586
  • Sep 23 17:37
    OpenUAS opened #2589
  • Sep 23 11:39

    gautierhattenberger on master

    [Start script] Use Python3. (#2… (compare)

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)
maybe something like
$(OBJDIR)/simsitl.so : $($(TARGET).objs)
    $(Q)$(CXX) $(CXXFLAGS) -shared -o $@ $($(TARGET).objs) $(LDFLAGS)
not sure though if it really makes sense to compile all that into one lib
adamczer
@adamczer
correct, by simulation I meant the calls from paparazzi to the JSBSim, I would have to alter the run to functionality of the ui to call the newly created jar. Thanks for the advice I will try that make file.
Shubham Vyas
@kill2win
@flixr thank you. Will try that
Felix Ruess
@flixr
@adamczer you would probably need to #ifdef out the main in https://github.com/paparazzi/paparazzi/blob/master/sw/simulator/nps/nps_main.c#L92 and set the options yourself and then periodically call nps_main_periodic
I have to admit that I don't quite understand the reason for calling this from java though...
but then I'm not familiar with Java/C integration at all...
adamczer
@adamczer
The nps main init/ execution cycle would be replaced by a Java execution. All the calls that exist from this point of entry could then be called directly allowing for testing of framework prior to completing a full Java implementation. Its basically so I can swap out one component at a time and make sure I did not mess up something while porting. Does that make more sense?
Felix Ruess
@flixr
the approach does make more sense now, yes :-)
still wondering why you want to port it to java though... but maybe that's just because I'm biased against java ;-)