paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] a question about joystick


From: Felix Ruess
Subject: Re: [Paparazzi-devel] a question about joystick
Date: Wed, 28 Aug 2013 22:59:33 +0200

Hi Refik,

the joystick subsystem is rather redundant in that case (all it does is add the USE_JOYSTICK), so I removed it in master...

Now do you want to completely replace the "normal" RC by a joystick or just be able to fly with joystick in AUTO2 while in a certain flight plan block.
If you want the former, use the <subsystem name="radio_control" type="datalink"/> and use a input2ivy conf file to send e.g. the RC_4CH message.

If you want the latter, it probably needs a bit more work: you need to add an extra block to the flight plan and set the joystick_block to that block id.
Then send the JOYSTICK_RAW message by an appropriate config file for input2ivy...

Hope that helps...
Cheers, Felix


On Wed, Aug 28, 2013 at 10:40 PM, Refik Sever <address@hidden> wrote:
Hello,

We are trying to use joystick.

We added joystick driver, it is working properly in ubuntu. Then, we choose flight plan as "joystick.xml". We also added these two lines to our airframe:

  <define name="USE_JOYSTICK" value="1"/> 
  <subsystem name="joystick"/>

we added these lines to control_panel.xml

<program name="Joystick" command="sw/ground_segment/joystick/input2ivy">
<arg flag="-b" variable="ivy_bus"/>
</program>


We typed this command on terminal:
~/paparazzi/sw/ground_segment/joystick$ ./input2ivy -ac Umarim_Lite ikarus_usb.xml


When we run  ~/paparazzi/sw/ground_segment/joystick$ ./test_stick we can see the axis and values of joystick.

We uploaded the code and switched to joystick block in GCS (in auto2 mode) but it did not work. We also can not see anything related to joystick in messages.

Is there anybody using joystick? Our paparazzi_version is v5.1_devel-155-g3685c50-dirty

Regards,
Refik






_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]