|
Page 1 of 1
|
[ 6 posts ] |
|
wrong motor speed returned
Author |
Message |
fxlj007
Rookie
Joined: Sun Jun 17, 2012 11:18 am Posts: 26
|
 wrong motor speed returned
Hi all,
Could you please take a look at the attached picture? It's a snapshot of the debugger window. Strangely it gives me a = 20 but the speed of motorA should be 0 then. I've no idea about it.
|
Fri Oct 12, 2012 7:55 am |
|
 |
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 620
|
 Re: wrong motor speed returned
It seems like the motor is reporting the last non-zero speed it was given. I'm looking into this issue now.
Thanks!
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
Fri Oct 12, 2012 12:56 pm |
|
 |
fxlj007
Rookie
Joined: Sun Jun 17, 2012 11:18 am Posts: 26
|
 Re: wrong motor speed returned
Hi guys,
Do you have any update for this problem?
|
Tue Oct 30, 2012 12:28 pm |
|
 |
amcerbu
Novice
Joined: Sun Oct 21, 2012 10:01 pm Posts: 76
|
 Re: wrong motor speed returned
I've never read from the motor[] array; I've only ever written to it. I usually just use global variables (or, sometimes, another array) in my program to keep track of motor values, and then update motors each frame, rather than actually checking the value in motor[]. What happens if you use a different motor port? It doesn't seem to be acting strangely with motorB and motorC.
Strange.
|
Wed Oct 31, 2012 7:57 pm |
|
 |
roboRed
Expert
Joined: Fri Nov 02, 2012 12:07 am Posts: 163 Location: California, USA
|
 Re: wrong motor speed returned
Ah!
Maybe only "int's" can only be imputed int a motor?
_________________ string Robored = "Awesome" ~~Neil Balch~~
|
Mon Nov 12, 2012 12:55 am |
|
 |
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 620
|
 Re: wrong motor speed returned
This issue should be resolved in ROBOTC 3.54.
Thanks!
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
Tue Nov 13, 2012 5:39 pm |
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|