Menu

Adding channels/ varying delay (pause)

Features
Anonymous
2014-10-30
2014-11-12
  • Anonymous

    Anonymous - 2014-10-30

    Hi,

    I'm using the ppmoutput example. I'm able to vary the position of 4 of the channels using pots. Changing the number of channels and increasing/decreasing the gpins array results in a sqaure wave ouput instead of the previous PPM. I'm also noticing a varying pause between sets of signals, which is only visible using 4 channels.

    From the source files I can't see what else has to be changed. I have tried adjusting the pulse and pause lengths with no success, I've also varied the mapping function to map the signals i found in a spektrum radio.

    Regards
    Haroun

     
    • dvdouden

      dvdouden - 2014-11-12

      Hi Haroun,

      Simply changing the CHANNELS define and the initialization of g_pins should work fine.

      #define CHANNELS 2
      
      uint8_t  g_pins[CHANNELS] = {A0, A1}; // Input pins
      

      or

      #define CHANNELS 6
      
      uint8_t  g_pins[CHANNELS] = {A0, A1, A2, A3, A4, A5}; // Input pins
      

      has worked without problems in the past. Could you paste the code you're using here?

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.