Jump to content


Photo

PPM_out first disapointing try


  • Please log in to reply
22 replies to this topic

#1 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 05 August 2012 - 12:33 PM

hello,
made a try today on PPM out, using one timer even if I know what it'll be (glitchs).

I would like a stm32 board able to use uavtalk for my future android remote control, don't be afraid with the wires jungle, it is really working fine like that ;)

I plugged a custom CopterControl board with a ppm ouptut that goes trought a frsky transmitter, and binded the fisrt axis to the pitch movement of the CopterControl :


View on Vimeo

I'll make another try with 2 pwms, but I didn't figured now how... :)

#2 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 05 August 2012 - 03:41 PM

I got PPM out working on an Arduino with one and a half timers. It wound up working perfectly. I'm betting you'll get there yet. :)

Is this so that you can have a full six-axis device on the ground that can transmit info to another mechanism, like a head tracker?

#3 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 05 August 2012 - 03:59 PM

I have a microchip card that is doing that with only 1 timer ;)
but it is not doing anything left until it has free-time.(at the end of the 6th channel)...

I'm looking over synchronised pwms or maybe 1 pwm and 1 timer, not sure here...

Is this so that you can have a full six-axis device on the ground that can transmit info to another mechanism, like a head tracker?

better than that, a box that can connect in many way : on my current android radio :
Posted Image
I can connect an andoid device via an IOIO, a computer via usb cdc, another generic usart and a radio in ppm and specify for each channel (8 in total) which device to connect. this way I added 2 more dual axis stick plugged to the IOIO so that I can use my gimbal while flying with the radio in ppm mode ;)

And I'm taking the telemetry back to the IOIO (android) or usb (copmputer).

But I had a little problem of glitch with the android input (not with the other) certainly due to the latency of the adb interface.
And because I didn't set up the mixer function yet, i think it is a good idea to not make the thinks twice, so I'll like to use OP modules that have nearly all what I need and even better ;)

#4 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 05 August 2012 - 06:22 PM

ok, found everithing I need int the ppm.c of the pipextreme :rolleyes:
time to adapt....

#5 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 07 August 2012 - 01:20 PM

ouch, my head...
was ppm out working on pipextreme?

#6 Brian

Brian

    RF Lead Developer

  • Members
  • PipPipPip
  • 1275 posts
  • LocationTucson, AZ
  • Country: flag of United States United States


Posted 07 August 2012 - 01:35 PM

I'm not sure if it was tested.

This is the only link that I found discussing it: http://forums.openpi...-ppm-pipxtreme/

#7 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 07 August 2012 - 01:39 PM

ok, will start by trying the code, if it works I'll look on implementing in the PIOS architecture.
Now I'm a point where I don't know how to make it work... :unsure: without a dedicated device...

#8 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 13 August 2012 - 11:46 AM

Hello,
I finnaly have a nice PPM output that looks (on the oscilloscope) solid, will make a try this evening with a transmiter.
Had to make some tricky modification in the pios_tim.c but it seems to run.
I'll take some time trying to integrate this nicely in the CC3D architecture if it works. ;)

#9 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 13 August 2012 - 03:58 PM

did the test, the signal is nice and solid, no more glitches :rolleyes:
will clean it and commit ;)

#10 dankers

dankers

    Head Lemon Coordinator

  • Members
  • PipPipPip
  • 11064 posts
  • Country: flag of Australia Australia


Posted 14 August 2012 - 03:50 AM

Thank you!

Commit it to a branch and then please start a review: http://git.openpilot.org

Add, peabody124, Stac, OSNWT, pt_dreamer, werner, brain and alessio to the review.

#11 Hyper

Hyper

    Flight Code Custodial Engineer

  • Members
  • PipPipPip
  • 323 posts
  • LocationAdelaide, South Australia
  • Country: flag of Australia Australia


Posted 14 August 2012 - 04:29 AM

Dave, did you mean "brian" there? :)

#12 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 14 August 2012 - 05:41 AM

did the test, the signal is nice and solid, no more glitches :rolleyes:
will clean it and commit ;)


Fun! These kind of hardware things always seem like black magic. I bet when I see the commit, it'll only be two lines long.

#13 dankers

dankers

    Head Lemon Coordinator

  • Members
  • PipPipPip
  • 11064 posts
  • Country: flag of Australia Australia


Posted 14 August 2012 - 05:46 AM

Dave, did you mean "brian" there? :)


No, we call him brain :D

Guess that was a real Freudian slip, he is a very smart guy.

#14 Adverse Effects

Adverse Effects

    Team Dropbear - QLD

  • Members
  • PipPipPip
  • 2995 posts
  • Country: flag of Australia Australia


Posted 14 August 2012 - 06:18 AM

i would love to make some custom tablet holders (with sticks) but i carnt seem to find the joystick modules anywhere and i carnt bring my self to dismantling a working TX for them i have been looking on and off for over a year

 25/2/2013

Help Those That Help Themselves First
 
convicted zealot

Quad - 01 Build Blog (Now Dead)
THE BEAST My RC Lawn Mower Blog
My Eurgle 2.4Ghz 9ch (Turnigy 9x clone)
HEX-01 - Build Log
FPVRaptor Composite 1600mm - Build Log
 
if i link to hobbyking i use Affiliate links that pay me a few cents each time you use them


#15 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 14 August 2012 - 07:23 AM

Fun! These kind of hardware things always seem like black magic. I bet when I see the commit, it'll only be two lines long.

You have no idea on how right you are...
in fact I don't really know how it started working, but it does...

i would love to make some custom tablet holders (with sticks) but i carnt seem to find the joystick modules anywhere and i carnt bring my self to dismantling a working TX for them i have been looking on and off for over a year

wrong post here? no? :D
I found Hitech RC gimbals once, but nearly the price of the HK transmitter... and believe me you can't do much with these TX, but as spare parts they rocks! :lol:

#16 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 14 August 2012 - 08:07 AM

hello... again ;)
would like to have a guideline here, when used as PPM output should I remove all the other servo output or should I let them for other things?

what UAVO definition should I modify? ActuatorSettings or HWsettings?

Edited by fertito, 14 August 2012 - 08:08 AM.


#17 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 14 August 2012 - 08:16 AM

hello... again ;)
would like to have a guideline here, when used as PPM output should I remove all the other servo output or should I let them for other things?


Can we have both? I can see use cases for other things, such as sonar. :)

what UAVO definition should I modify? ActuatorSettings or HWsettings?


HWSettings

#18 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 14 August 2012 - 08:29 AM

yes, we certainly can have both.

in this case, it is better to mod actuatorsetting to be able to choose wich channel is going on wich servo/ppm channel...

trying to rewrite the code with a callback to avoid modifying pios_tim.c <_<

#19 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 14 August 2012 - 08:50 AM

in this case, it is better to mod actuatorsetting to be able to choose which channel is going on which servo/ppm channel...


That's an interesting point. Right now, actuator acts on channel names, such as throttle, roll, etc... What you're talking about is routing the channels beforehand. Hmm... I should think this is relatively straightforward, but in this case I think that actuatorsetting needs to be where you set the routed channels, adn in HWSettings is where you set that we have PPM output.

#20 fertito

fertito

    Developer

  • Members
  • PipPipPip
  • 754 posts
  • LocationGrenoble, France
  • Country: flag of France France

Posted 14 August 2012 - 11:27 AM

Ok, will do this later ;)
I cleaned the code, there is more than 2 lines of code, sorry... :)
now everything look a little cleaner than what I made before, and there is no need to touch at pios_tim.c, everything was made in the pios_ppm.c file, few lines in Pios_board.c and 2 line in the Actuator.c .
Seems to run well, pretty proud of this :P

edit : now I use a callback for switching between channels.
sorry kenn, I didn't documented my code at all, will try to make this evening (if I'm not going to fly ;) )

Edited by fertito, 14 August 2012 - 11:29 AM.