Can you convert the gear position to a number, either 1.0 or 0.0 Now you one need one PID, no MUX. Multiple each parameter but ehvalue of the switch or not-switch
P = Int(SW)*Plow + int(not(SW))*Phigh In the above one of the two terms is zero. Which one that is bends on the value of SW. On Tue, Oct 31, 2017 at 5:55 PM, andy pugh <[email protected]> wrote: > On 31 October 2017 at 21:54, Gene Heskett <[email protected]> wrote: > > > But in converting it to use two pid's, selecting which one by the gear > > shift position, I just ran into a show stopper. I cannot connect the > > encoder index to motion.spindle-index, which is an i/o bit, but > > halchecker won't let me feed both pid's. > > You can, I just tried it. > > bit FALSE spindle-index-enable > <=> motion.spindle-index-enable > ==> pid.0.index-enable > ==> pid.1.index-enable > <=> sim_spindle.index-enable > > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1916 > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > -- Chris Albertson Redondo Beach, California ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
