Revision ff7ad65b devices/DiWheelDrive/main.cpp

View differences:

devices/DiWheelDrive/main.cpp
670 670
}
671 671

  
672 672
void shellRequestMotorCalibrate(BaseSequentialStream *chp, int argc, char *argv[]) {
673
  global.motorcontrol.resetGains();
674
  chprintf((BaseSequentialStream*)&global.sercanmux1, "motor calibration starts in five seconds...\n");
675
  BaseThread::sleep(MS2ST(5000));
673 676
  global.motorcontrol.isCalibrating = true;
674 677

  
675 678
  return;
......
681 684
  return;
682 685
}
683 686

  
687
void shellRequestMotorResetGains(BaseSequentialStream *chp, int argc, char *argv[]) {
688
  global.motorcontrol.resetGains();;
689

  
690
  return;
691
}
692

  
684 693
static const ShellCommand commands[] = {
685 694
  {"shutdown", shellRequestShutdown},
686 695
  {"wakeup", shellRequestWakeup},
......
706 715
  {"motor_stop", shellRequestMotorStop},
707 716
  {"motor_calibrate", shellRequestMotorCalibrate},
708 717
  {"motor_getGains", shellRequestMotorGetGains},
718
  {"motor_resetGains", shellRequestMotorResetGains},
709 719
  {NULL, NULL}
710 720
};
711 721

  

Also available in: Unified diff