Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Averaging encoders
#6
Just a thought here …

In a Type 8 ECT entry, pEnc and pEnc1 typically do not point directly to the encoders’ hardware channels but to the ECT entries of each of the processed encoders’ hardware channels:
EncTable[m].type = 1
EncTable[m].pEnc = Gate3[0].Chan[0].ServoCapt.a
. . .
EncTable[l].type = 1
EncTable[l].pEnc = Gate3[1].Chan[0].ServoCapt.a
. . .
EncTable[l].type = 8
EncTable[n].pEnc = EncTable[m].PrevEnc.a
EncTable[n].pEnc1 = EncTable[l].PrevEnc.a

This should be done anyway to prevent any “roll-over” issues with the source HDW.

Maybe the ECT behaves in an unexpected way when looking directly at the HDW.
Reply


Messages In This Thread
Averaging encoders - leandro.martins - 09-13-2021, 08:44 AM
RE: Averaging encoders - Eric Hotchkiss - 09-13-2021, 07:50 PM
RE: Averaging encoders - leandro.martins - 09-14-2021, 06:11 AM
RE: Averaging encoders - Eric Hotchkiss - 09-14-2021, 11:11 AM
RE: Averaging encoders - leandro.martins - 09-15-2021, 04:23 AM
RE: Averaging encoders - steve.milici - 09-15-2021, 10:18 AM
RE: Averaging encoders - leandro.martins - 09-15-2021, 12:22 PM
RE: Averaging encoders - leandro.martins - 09-22-2021, 04:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)