John,Or for connecting a small devive to read Ah used from battery pack (copyright Lenny!)
really does suggest a serial connection failure or conflict rather than a script error. I'd suggest, FIRST don't touch your physical setup or Roborun settings, but open the older script that was working, download it to the controller, and try that. If it too fails, the problem is not in the script but in your physical or Roborun setup. If, instead, it works, I'd reload the new script, BUILD it to see that the file hasn't been corrupted, download and try it again. Let me know the results of (1) and (2) and we'll go from there."controller lost" and then "controller found", "read configuration yes/no"...
Motor amps are read in the new motor compensation sub-routine: this is the Roboteq variable for its estimate of motor current. That message's wording is not in the script, so it was a message from Roboteq about what it was doing. The two lines in the script that read motor amps are"read motor amps" (which is zero) then fails.
vILeft = GetValue (_A, 1) 'estimated current for motor1, max amps setting = 1000
vIRight = GetValue (_A, 2) 'estimated current for motor2, max amps setting = 1000
Return to Everything Powerchair
Users browsing this forum: emilevirus, Williamclark77 and 346 guests