paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] PPM Encoder and Lisa/L


From: Chris Gough
Subject: Re: [Paparazzi-devel] PPM Encoder and Lisa/L
Date: Fri, 18 Nov 2011 21:11:36 +1100

Hi Jochen,

My radio file (same PPM encoder) looks like this:

<radio name="SX (PPM encoder)" data_min="800" data_max="2200" sync_min
="5000" sync_max ="15000" pulse_type="POSITIVE">
 <channel ctl="A" function="ROLL"     min="950"  neutral="1500"
max="2050" average="0"/>
 <channel ctl="B" function="PITCH"    min="950"  neutral="1500"
max="2050" average="0"/>
 <channel ctl="C" function="YAW_STICK"      min="950"  neutral="1500"
max="2050" average="0"/> <!-- min is full left -->
 <channel ctl="D" function="THROTTLE" min="1223"  neutral="1223"
max="2050" average="0"/>
 <channel ctl="E" function="FLAP_SLIDER"    min="1223"  neutral="1223"
max="2050" average="1"/>
 <channel ctl="F" function="SPOILER" min="2050"  neutral="1500"
max="950" average="1"/> <!-- min is DOWN (slider towards pilot).

                      Used by me for lights.

                      Reversed because I want down to be on
(australian switch convention) -->
 <channel ctl="G" function="MODE"     min="2050" neutral="1500"
max="950"  average="1"/> <!-- min is "1" (towards pilot).

                      I want that to be AUTO2, (max=MANUAL, etc),

                      so I reversed it here rather than in the SX -->
 <channel ctl="H" function="UNUSED"   min="950" neutral="1500"
max="2050" average="0"/>
</radio>

Works for me with LPC type autopilots, haven't tried it with STM type yet.

Chris Gough

On Fri, Nov 18, 2011 at 9:00 PM, Jochen Rieger <address@hidden> wrote:
> Ok, added. Warning is disappear. But the values doesn' t shown still.
>
> Is the radio file right now?
>
> !DOCTYPE radio SYSTEM "radio.dtd">
> <radio name="Futaba_6J" data_min="900" data_max="2100" sync_min ="5000"
> sync_max ="15000" pulse_type="POSITIVE">
>  <channel ctl="1" function="ROLL"     min="2000" neutral="1500" max="1000"
> average="0"/>
>  <channel ctl="2" function="PITCH"    min="2000" neutral="1500" max="1000"
> average="0"/>
>  <channel ctl="3" function="THROTTLE" min="2000" neutral="1500" max="1000"
> average="0"/>
>  <channel ctl="4" function="YAW"      min="2000" neutral="1500" max="1000"
> average="0"/>
>  <channel ctl="5" function="MODE"     min="2000" neutral="1500" max="1000"
> average="1"/>
>  <channel ctl="6" function="UNUSED"   min="2000" neutral="1500" max="1000"
> average="0"/>
>  <channel ctl="7" function="UNUSED1"   min="2000" neutral="1500" max="1000"
> average="0"/>
>  <channel ctl="8" function="UNUSED2"   min="2000" neutral="1500" max="1000"
> average="0"/>
> </radio>
>
> Is something to change in the airframe file?
>
> -Jochen
>
> 2011/11/18 Felix Ruess <address@hidden>
>>
>> Two channels can't have the same name, just name them UNUSED1, UNUSED2,
>> ...
>> Also see http://paparazzi.enac.fr/wiki/Radio_Control
>>
>> Cheers, Felix
>>
>> On Fri, Nov 18, 2011 at 10:39 AM, Jochen Rieger <address@hidden>
>> wrote:
>> > Ok thanks, now i have added the additional channelns in the radio file
>> > likre
>> > this:
>> >
>> > <!DOCTYPE radio SYSTEM "radio.dtd">
>> > <radio name="Futaba_6J" data_min="900" data_max="2100" sync_min ="5000"
>> > sync_max ="15000" pulse_type="POSITIVE">
>> >  <channel ctl="1" function="ROLL"     min="2000" neutral="1500"
>> > max="1000"
>> > average="0"/>
>> >  <channel ctl="2" function="PITCH"    min="2000" neutral="1500"
>> > max="1000"
>> > average="0"/>
>> >  <channel ctl="3" function="THROTTLE"      min="2000" neutral="1498"
>> > max="1000" average="0"/>
>> >  <channel ctl="4" function="YAW" min="2000" neutral="1120" max="900"
>> > average="0"/>
>> >  <channel ctl="5" function="MODE"    min="2000" neutral="1500"
>> > max="1000"
>> > average="1"/> <!-- center slider        -->
>> >  <channel ctl="6" function="UNUSED"     min="2000" neutral="1500"
>> > max="1000"
>> > average="0"/> <!-- Top right switch     -->
>> > <channel ctl="7" function="UNUSED"     min="2000" neutral="1500"
>> > max="1000"
>> > average="0"/>
>> > <channel ctl="8" function="UNUSED"     min="2000" neutral="1500"
>> > max="1000"
>> > average="0"/>
>> > </radio>
>> >
>> > but now while building the firmware, the follow warning is shown
>> >
>> > /home/amfis/paparazzi/var/Maja/generated/radio.h:26:1: warning:
>> > "RADIO_UNUSED" redefined
>> > /home/amfis/paparazzi/var/Maja/generated/radio.h:24:1: warning: this is
>> > the
>> > location of the previous definition
>> >
>> > Are the dummy channel right define?
>> >
>> > With this building, it doesnt running still.
>> >
>> >
>> > Regards.
>> > Jochen
>> >
>> > 2011/11/18 Christophe De Wagter <address@hidden>
>> >>
>> >> The radio file should correspond to the summed pulses arriving at the
>> >> autopilot:
>> >> -in case of analog 35MHz receivers it is the RC - TRANSMITTER that
>> >> makes
>> >> the pulse train (receiver only does RF part)
>> >>    => radio file depends on transmitter, you could swap to another
>> >> receiver (and e.g. you can use a 4channel receiver to receive 9 pulses
>> >> :-) )
>> >> -in case of digital receivers it is not the transmitter but the
>> >> receiver
>> >> that makes the pulses
>> >>    => e.g. Futaba Fasst 6017: you can use any compatible transmitter
>> >> without need to change the radio file
>> >> -in case of an encoder it is the encoder that makes the summed pulse
>> >>    => if the encoder software makes 8 pulses, even with a 5 channel RC
>> >> connected paparazzi will get 8: so the radio file should read 8
>> >> -Christophe
>> >>
>> >>
>> >>
>> >> On Fri, Nov 18, 2011 at 10:13 AM, Felix Ruess <address@hidden>
>> >> wrote:
>> >>>
>> >>> But since the 8 channel PPM encoder actually always outputs 8
>> >>> channels, you have to define 8 channels in your radio.xml file like in
>> >>> the example on the wiki.
>> >>>
>> >>> Cheers, Felix
>> >>>
>> >>> On Fri, Nov 18, 2011 at 10:03 AM, Jochen Rieger
>> >>> <address@hidden>
>> >>> wrote:
>> >>> > In the radio file is also just configure 6 channels(6 channel
>> >>> > receiver). I
>> >>> > wanted just say that is the 8 channel PPM encoder from Hendrix.
>> >>> >
>> >>> > -Jochen
>> >>> >
>> >>> > 2011/11/18 Christophe De Wagter <address@hidden>
>> >>> >>
>> >>> >> You have 6 zero's in the rc-message view, while the encoder sends 8
>> >>> >> channels? That sounds like a radio.xml not being compatible with
>> >>> >> the
>> >>> >> number
>> >>> >> of pulses?
>> >>> >> Note that paparazzi PPM reading is very selective. This dates from
>> >>> >> the
>> >>> >> time where everyone was using 35MHz. If 2 transmitters were on the
>> >>> >> same
>> >>> >> frequency, you wanted to be sure that paparazzi would not accept
>> >>> >> this
>> >>> >> corrupted signal.
>> >>> >>
>> >>> >> -Christophe
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> On Fri, Nov 18, 2011 at 8:33 AM, Jochen Rieger
>> >>> >> <address@hidden>
>> >>> >> wrote:
>> >>> >>>
>> >>> >>> Hello,
>> >>> >>>
>> >>> >>> i have a problem with the PPM at Lisa/L. I can see an signal at
>> >>> >>> PPM
>> >>> >>> output of the 8 Channel PPM Encoder Version 2, that seems to be a
>> >>> >>> PPM
>> >>> >>> signal(measured with scope). The input port of the PPM signal is
>> >>> >>> the
>> >>> >>> Trig.
>> >>> >>> port of UART1 at Lisa/L (pin 1).
>> >>> >>> But when I set the tele_FBW to 1 in GCS. I see only 0,0,0,0,0,0
>> >>> >>> in
>> >>> >>> the
>> >>> >>> value message window.
>> >>> >>>
>> >>> >>> I have setup the radio file like the wiki. The right pulse_type
>> >>> >>> and
>> >>> >>> the
>> >>> >>> right numbers of input channelns.
>> >>> >>> Have anyone an idea?
>> >>> >>>
>> >>> >>> Best regards.
>> >>> >>> Jochen
>> >>> >>>
>> >>> >>> _______________________________________________
>> >>> >>> Paparazzi-devel mailing list
>> >>> >>> address@hidden
>> >>> >>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> >>> >>>
>> >>> >>
>> >>> >>
>> >>> >> _______________________________________________
>> >>> >> Paparazzi-devel mailing list
>> >>> >> address@hidden
>> >>> >> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> >>> >>
>> >>> >
>> >>> >
>> >>> > _______________________________________________
>> >>> > Paparazzi-devel mailing list
>> >>> > address@hidden
>> >>> > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> >>> >
>> >>> >
>> >>>
>> >>> _______________________________________________
>> >>> Paparazzi-devel mailing list
>> >>> address@hidden
>> >>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> >>
>> >>
>> >> _______________________________________________
>> >> Paparazzi-devel mailing list
>> >> address@hidden
>> >> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> >>
>> >
>> >
>> > _______________________________________________
>> > Paparazzi-devel mailing list
>> > address@hidden
>> > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> >
>> >
>>
>> _______________________________________________
>> Paparazzi-devel mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>
> _______________________________________________
> 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]