Hi E,hi C,
The manual says yes.
In what way are you using the Constant and why.?
E
Const,
Constants can be assigned to symbolic names using CONST directive. Constants can be global or local. One example:
Dim x As Single
Dim y As Word
Const pi = 3.14159
Const high = 1023
x = pi
y = high
Hi E,hi C,
You can declare Frame as a Const but OSH will not let you split it as HB, LB for later processing.
E
Query:
Is this the Servo 20Sec Frame time, if so, why do you want to Compare with it CCPR1.?
When a CCPR1 Flags the equality of the CCPR1 with the Timer.?
E
View attachment 286463
Const Frame=20000Hi E,
A member on ETO has kindly written some 'C' CODE for me, which relates to an earlier question here.
This is one of the lines, used: ['Const frame = 20000 'how long each frame is]
This doesn't compile, so I changed it to a DIM with 2x BYTES, but it would be interesting to know if CONST is possible.
C
When I looked the latest version in ETO, the frame time was counted using 1ms interrupts.Hi E,
RE: CONSTANTS, OK.
I'm having difficulty understanding quite what this program does. FRAME may have changed from 20ms to a much faster time, from what I undertsand, it is clocking BYTES in 'US' with an INTERRUPT from SERVOS and the GPS UART.
C
Hi E,Hi,
Do you have a datasheet for the Servo, the usual Frame is 20mSec.
E
You had a test program, which worked alone without jitter, but with the full program it had jitter.Hi E,
I have many SERVOS, they all work from ESCs, and have the 20ms 'FRAME', but I think this is different, it is all hardware, and I had to buy and place a 'shift register' onto a separate PCB, with 2x inputs, for this to work.
C
Hi J,You had a test program, which worked alone without jitter, but with the full program it had jitter.
Did you find the reason for the jitter?
And, some members of ETO will never come over here. They make chocolate ice cream because not everybody likes vanilla.hi C,
I have no intention on ever going over to ETO.
E
Hi E,hi C,
I have no intention on ever going over to ETO.
E
Hi P,And, some members of ETO will never come over here. They make chocolate ice cream because not everybody likes vanilla.
Hi E,hi C,
I assume the Servo get the usual 1mSec thru 2mSec positioning pulse every 20mSec frame period.?
How are you varying the positioning pulse period.?
E
BTW: please post here on AAC any technical data being referred too in your posts.
OT:
I hope your project gets completed in my lifetime, I am in my 91st year!
Hi E,hi C,
How are you varying the positioning pulse period.?