Sebastian,

I wrote that code, or more correctly adapted a typical HAL driver written by
Alex with the EMC1 VTI driver written by Paul. I do not recall why I needed,
or thought I needed to put that in there. All it does is a test from the
command line for the maximum number of axes. The base VTI board supports 4
axes with encoders and 8 on board digital I/O. There are also daughter
boards including one supporting an additional 4 axes and others supporting
varying numbers of digital and analog I/O. Hence 8 would be the maximum
allowable axes for that board including daughter boards.

I no longer have a VTI board as that was used only once to convert an
OpenCNC application to EMC2. Since then everything has been converted over
to the Mesa boards. I know a significant bug has been introduced into that
driver, in that the analog output for the PWM amplifier is getting set to
values that are much too small. But not having the board, I have not been
able to debug the problem.

You should also know, other than a hello world program just to figure out
how the compiler works, that was the very first piece of code I ever wrote
on Linux. :)

Regards,
Eric


I'm going through the issues Coverity has found in our TRUNK, and while
fixing a couple of bugs in hal_vti i noticed something strange.

hal_vti.h defines MAX_CHANS to be 4, and that's used a lot in hal_vti.c.

But hal_vti.c defines MAX_CHAN (without the S) to be 8, and uses that in one
place in rtapi_app_main().

Looks like a bug to me, but maybe Alex Joni or someone who knows the code
can check it out and verify.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to