mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 15:50:37 +02:00
Updated some debug print information
This commit is contained in:
parent
6d462a477d
commit
b836a580ff
1 changed files with 5 additions and 4 deletions
|
@ -376,7 +376,7 @@ function MyController(hand) {
|
||||||
print("WARNING: could not find updateMethod for state " + stateToName(this.state));
|
print("WARNING: could not find updateMethod for state " + stateToName(this.state));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print("WARNING: could not find state " + this.state + " " + CONTROLLER_STATE_MACHINE[this.state]);
|
print("WARNING: could not find state " + this.state + " in state machine");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -390,7 +390,7 @@ function MyController(hand) {
|
||||||
if (WANT_DEBUG || WANT_DEBUG_STATE) {
|
if (WANT_DEBUG || WANT_DEBUG_STATE) {
|
||||||
var oldStateName = stateToName(this.state);
|
var oldStateName = stateToName(this.state);
|
||||||
var newStateName = stateToName(newState);
|
var newStateName = stateToName(newState);
|
||||||
print("STATE (" + this.hand + "): " + oldStateName + " --> " + newStateName);
|
print("STATE (" + this.hand + "): " + newStateName + " <-- " + oldStateName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// exit the old state
|
// exit the old state
|
||||||
|
@ -401,7 +401,7 @@ function MyController(hand) {
|
||||||
exitMethod.call(this);
|
exitMethod.call(this);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print("WARNING: could not find this.state " + this.state);
|
print("WARNING: could not find state " + this.state + " in state machine");
|
||||||
}
|
}
|
||||||
|
|
||||||
// enter the new state
|
// enter the new state
|
||||||
|
@ -412,7 +412,7 @@ function MyController(hand) {
|
||||||
enterMethod.call(this);
|
enterMethod.call(this);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print("WARNING: could not find newState " + newState);
|
print("WARNING: could not find newState " + newState + " in state machine");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.state = newState;
|
this.state = newState;
|
||||||
|
@ -943,6 +943,7 @@ function MyController(hand) {
|
||||||
this.setState(STATE_RELEASE);
|
this.setState(STATE_RELEASE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.state == STATE_HOLD_SEARCHING && this.bumperReleased()) {
|
if (this.state == STATE_HOLD_SEARCHING && this.bumperReleased()) {
|
||||||
this.setState(STATE_RELEASE);
|
this.setState(STATE_RELEASE);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue