SC2130 - MXRPM doesnt work for motor 2
8 years 1 month ago #29531043
by metRo_
SC2130 - MXRPM doesnt work for motor 2 was created by metRo_
Hi,
I was trying to set a microbasic for driver setup and found that MXRPM isn't change the motor 2 value, only motor 1 is working.
' Set Motor MAX RPM
setconfig(_MXRPM, 1, 140) ' Motor 1 to 140RPM (p221)
setconfig(_MXRPM, 2, 140) ' Motor 2 to 140RPM (p221)
firmaware: v1.4b
I was trying to set a microbasic for driver setup and found that MXRPM isn't change the motor 2 value, only motor 1 is working.
' Set Motor MAX RPM
setconfig(_MXRPM, 1, 140) ' Motor 1 to 140RPM (p221)
setconfig(_MXRPM, 2, 140) ' Motor 2 to 140RPM (p221)
firmaware: v1.4b
Please Log in or Create an account to join the conversation.
- roboteq
8 years 1 month ago #29531044
by roboteq
Replied by roboteq on topic SC2130 - MXRPM doesnt work for motor 2
Microbasic makes calls to standard firmware functions. If these commands work from Roborun, they should run from microbasic.
What do you read as a response to ~mxrpm after you run the script?
What do you read as a response to ~mxrpm after you run the script?
Please Log in or Create an account to join the conversation.
8 years 1 month ago #29531045
by metRo_
Replied by metRo_ on topic SC2130 - MXRPM doesnt work for motor 2
If I set mxrpm using the roborun I got "MXRPM=140:140" however if I set it by script then the answer to ~mxrpm is "MXRPM=140:0"
Can you test it?
Can you test it?
Please Log in or Create an account to join the conversation.
8 years 1 month ago #29531046
by metRo_
Replied by metRo_ on topic SC2130 - MXRPM doesnt work for motor 2
my bad, had a setconfig down on the code with a wrong parameter, in this case MXRPM instead of pretend parameter.
Please Log in or Create an account to join the conversation.
Time to create page: 0.057 seconds