Skip to content

Commit

Permalink
stopIfFault is now part of the library
Browse files Browse the repository at this point in the history
  • Loading branch information
photodude committed Apr 18, 2015
1 parent 66dcdba commit 215d35a
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions DualVNH5019MotorShieldMod3/examples/Test_Motors/Test_Motors.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,6 @@
// this lets the single motor be controlled as if it were "motor 1"
DualVNH5019MotorShieldMod3 md;//Use default pins


void stopIfFault()
{
if (md.getM1Fault())
{
Serial.println("M1 fault");
while(1);
}
if (md.getM2Fault())
{
Serial.println("M2 fault");
while(1);
}
if (md.getM3Fault())
{
Serial.println("M3 fault");
while(1);
}
if (md.getM4Fault())
{
Serial.println("M4 fault");
while(1);
}
}

void setup()
{
// Open serial communications and wait for port to open:
Expand Down

0 comments on commit 215d35a

Please sign in to comment.