Problem with ResetMotorPosition()
MindSqualls :: Questions :: Using the motors :: NXT motors
Page 1 of 1
Problem with ResetMotorPosition()
I have a problem with understanding metod ResetMotorPorition. I'm not able to reset TachoCount. What am I doing wrong? When ResetMotorPosition is called nothing happens. As if it would work fine, just TahcoCunt doesen't change.
As I understand calling metod with false should put TachoCount to zero?
I'm working on my school project, which connects SIEMENS plcsim and Lego Mindstorm. Idea is that you write your program in SIMATIC as you would for expensive PLC, but insted of PLC you use my aplication and Lego Mindstorm
If someone could help me with my little problem I would be verry happy!
As I understand calling metod with false should put TachoCount to zero?
- Code:
public bool resetTachoB() {
errorString = "";
error = false;
try {
brick.MotorB.ResetMotorPosition(false);
} catch (Exception) {
error = true;
errorCode = 1;
}
return error;
}
I'm working on my school project, which connects SIEMENS plcsim and Lego Mindstorm. Idea is that you write your program in SIMATIC as you would for expensive PLC, but insted of PLC you use my aplication and Lego Mindstorm
If someone could help me with my little problem I would be verry happy!
theedge- Posts : 3
Join date : 2013-01-21
MindSqualls :: Questions :: Using the motors :: NXT motors
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|