Originally:
Code: Select all
if (mix_option == 2) {
channel[0]*=.75;
channel[1]*=.25;
chtemp=channel[1];
channel[1]=channel[0]+600-channel[1];
channel[0]+=chtemp;
}
Code: Select all
if (mix_option == 2) {
channel[0]*=.75;
channel[1]*=.25;
chtemp=channel[1];
channel[1]=channel[0]+600-channel[1];
channel[0]+=chtemp;
}
Any help would be appreciated.FBMinis wrote: ↑25 Jul 2018, 01:31 The sketch includes a 50:50 and a 75:25 mix but I've been playing with an "MPX Fox" converted to pitcheron and, due to the position of the servos (my mistake), I need more servo travel. Is it possible to mix elevator and rudder channels but keep servo movement all the way between 1000 and 2000us? Like a "100:100" mix..
Originally:Code: Select all
if (mix_option == 2) { channel[0]*=.75; channel[1]*=.25; chtemp=channel[1]; channel[1]=channel[0]+600-channel[1]; channel[0]+=chtemp; }
Code: Select all
if (mix_option == 2) {
channel[0]*=.75;
channel[1]*=.25;
chtemp=channel[1];
channel[1]=channel[0]+600-channel[1];
channel[0]+=chtemp;
findChannel[0]maxAndMin();
findChannel[1]maxAndMin();
RemapBothChannelsMaxAndMinTo1000-2000();
ConstrainChannelsTo1000-2000(); //to avoid going over full extention
}
The 300uS is the width of the PPM pulse, nothing to do with the sync pause Scott...Scott Todd wrote: ↑31 Jul 2018, 17:34Any coders out there that can help me understand where the 1500 comes from in Phil's PPM code? It should be straight forward but I can't figure it out. He reads the pots and ranges them from -500 to 500. Then when he builds the PPM stream, he adds the 300 sync pause. Where does the other 1200 get added in?