Quote:
Originally Posted by alphadog0309
this is true... is this a limitation within LabVIEW or just in the particular way the HiTechnic motor controllers are configured to run in LabVIEW?
|
Not sure exactly which "this" you are referring to, but if it's the run-on problem, I think it's a combination FCS timing, the labview template, and how the programmer writes their code.
This year's LabVIEW template used button events, rather than button states, so there is not a lot of motor control code running at any time, so the program is looping pretty fast, and can shut down the motors in response to a disable command quite quickly.
If the programmer has added a bunch of loops that read buttons and control servos (sending commands all the time) the drive loop gets slowed down to the point where it sometimes doesn't see the disable command before the FCS actually kills the program. In this instance, the Motor Controller keeps running the last issued command until it times out 2.5 seconds later.
I think a slightly longer delay between disable and kill in the FCS would solve this problem.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org
FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor