Andy, et al > > On 23 August 2011 20:20, John Prentice <j...@castlewd.freeserve.co.uk> > wrote: > >> I cannot "net" the output of my Scale to the pid.nn.Pgain pin as it is >> I/O. >> >> Is there a simple way to deal with this that I am missing? > > One solution would be to create a very simple hal component with an > input pin that writes direct to an IO pin. There may be neater and/or > easier ways. > Please could you amplify "that writes direct to an IO pin"? I have been reading the source of a few components (from and2 to bldc) but I have not found much documentation on exactly how the magic works.
I am not actually convinced that I really know the difference between a component Parameter and a Pin. PID seems to be documented in different places with the "gains" sometimes called Pins and sometimes Parameters. In a wild moment I wondered about changing the "gains" to Inputs but am not confident on recompiling components. BTW bldc is driving my motors like a champ. I had to resort to trying all "patterns". Looking at the hall outputs and using a battery A-B etc did not find the correct pattern. The other trick that helped was to ignore the encoder (with T parameter) until motor would rotate. There are a lot of things that can be wrong between the patterns and the A/B connections on the encoder! Thanks John Prentice ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users