Hello,
I am facing trouble using the pulseposition library.
i would like to send PPM signal (16 channels) on a Pixhawk to simulate RC Command with my teensy 3.6.
I am using the pulseposition library but when i look at the signal received by the Pixhawk on Mission planner, i can see that some of the PPM signal are not received by the Pixhawk (or at least not shown on mission planner in real time) and when i am controling a real robot using this library to send PPM Signal i have a big delay >50 ms between the command and the motion of the drone (i am using a teensy to overwrite the RC Command).
below the code that i am using for my test:
I have try loopback and it was working well.
Do i have to modify anithing and the arduino software before the complying (modify the CPU Speed for example)?
Do i have to connect pin other that the pin 6 to my pixhawk (to send the PPM Signal).
Thanks a lot for your help.
(Ps: sorry for my bad english)
I am facing trouble using the pulseposition library.
i would like to send PPM signal (16 channels) on a Pixhawk to simulate RC Command with my teensy 3.6.
I am using the pulseposition library but when i look at the signal received by the Pixhawk on Mission planner, i can see that some of the PPM signal are not received by the Pixhawk (or at least not shown on mission planner in real time) and when i am controling a real robot using this library to send PPM Signal i have a big delay >50 ms between the command and the motion of the drone (i am using a teensy to overwrite the RC Command).
below the code that i am using for my test:
Code:
#include <PulsePosition.h>
PulsePositionOutput myOut;
int i;
void setup() {
myOut.begin(6,7); // myOut.begin(6, 7); // txPin = 6, framePin = 7
pinMode(2, OUTPUT);
pinMode(2, HIGH);
i=0;
}
void loop() {
pinMode(2, HIGH);
myOut.write(0, 1100+i*10);
myOut.write(1, 1200+i*10);
myOut.write(2, 1300+i*10);
myOut.write(3, 1400+i*10);
myOut.write(4, 1500+i*10);
myOut.write(5, 1600+i*10);
myOut.write(6, 1700+i*10);
myOut.write(7, 1800+i*10);
i++;
if(i>10){
i=0;
}
}
Do i have to modify anithing and the arduino software before the complying (modify the CPU Speed for example)?
Do i have to connect pin other that the pin 6 to my pixhawk (to send the PPM Signal).
Thanks a lot for your help.
(Ps: sorry for my bad english)
Last edited: