Hello,
just one thing missing : which radio model and which channels are you using ( to know if the two channels used follow each other or if there's a time lag between them ... )
Hello,
just one thing missing : which radio model and which channels are you using ( to know if the two channels used follow each other or if there's a time lag between them ... )
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Hi Alan,
The two channels follow each other:
Switch on channel 7 and potentiometer on channel 8.
The radio is a classic Robbe Promars.
Thanks.
Ok, got it ...
PBP can't read two channels following each other without missing the second one ... because PULSIN needs some little " re-arming " time ... ( I make it short )
so, we must use a turnaround to achieve that ...
a look to the manual will give you the reason why ...Code:PULSIN _Vertical,1,Vertical RCTIME _Horizontal,1,Horizontal
and may be 1 unit @ 4 Mhz to add to Horizontal to be straight true ...
So, here, you have to re-write your sampling part without any command between the two channels signals sampling commands ...
Alain
Last edited by Acetronics2; - 18th June 2023 at 10:22.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Hi Alain,
Thanks
OK, I'll take it all back after the holidays![]()
Hi alan, here I am back from vacation
I read your explanation relating to the "rearming-time" of two successive Pulsin.
Note that here there is code between these two Pulsin (first the Gosub Tri, then the Gosub PRG n).
These are not directly successive pulsin commands and this notion of "rearming-time" does not seem to explain the problem.
The two PULSIN commands in the main loop are going to add jitter to the pulse output timing since the time is going to vary depending on the input pulse times.
Apart from this problem, I did positioning stability tests with several servos.
If a servo is not stable, it is because the value of the pulses is not constant.
If the gap between these impulses (which is normally 20 msec) is not constant, this does not influence the servo at all!
I did a test by alternating 20msec differences and 40 sec while sending constant pulses: the servo remains stable.
Bookmarks