Add todo.
This commit is contained in:
parent
696b502ae8
commit
f0f7aa9030
|
@ -47,6 +47,7 @@ public class DoorHinge {
|
||||||
|
|
||||||
// Process the hinge's movement.
|
// Process the hinge's movement.
|
||||||
// It will return true when the panel has finished moving.
|
// It will return true when the panel has finished moving.
|
||||||
|
// TODO: Add a mechanism to determine when a door gets stuck or can't reach the target angle.
|
||||||
public bool Actuate() {
|
public bool Actuate() {
|
||||||
if (Math.Abs(Hinge.Angle - TargetAngle) < 0.1 && Hinge.Angle == LastAngle) {
|
if (Math.Abs(Hinge.Angle - TargetAngle) < 0.1 && Hinge.Angle == LastAngle) {
|
||||||
Hinge.RotorLock = true;
|
Hinge.RotorLock = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user