Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -ra9c88c428c6ab7e9bdaa273826c1fde1b0a8a1f5 -rbd37ce75271151436de0bb6de9f75123d8251396 --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision a9c88c428c6ab7e9bdaa273826c1fde1b0a8a1f5) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision bd37ce75271151436de0bb6de9f75123d8251396) @@ -105,7 +105,7 @@ U08 BEMStatus; ///< Reg 284. BEM status. U08 BEMEncStatus; ///< Reg 285. BEM encoder status. S32 BEMEncPosition; ///< Reg 286. BEM encoder position. - S16 BPSpeed; ///< Reg 290. BP measured speed (RPM). + S16 BPPeriod; ///< Reg 290. BP measured period (10 uSec). S16 BPTorque; ///< Reg 292. BP measured torque. S16 BPSpeedFromHall; ///< Reg 294. BP measured speed from hall sensor(s). S16 VBVCmdPosition; ///< Reg 296. VBV commanded position (200 steps/rev). @@ -491,18 +491,15 @@ /*********************************************************************//** * @brief - * The getBPSpeed function gets the latest blood pump speed (in RPM) + * The getBPPeriod function gets the latest blood pump period (in 10uSec) * from the FPGA. * @details \b Inputs: fpgaSensorReadings * @details \b Outputs: none - * @return Latest blood pump speed. + * @return Latest blood pump period. *************************************************************************/ -U16 getBPSpeed( void ) +U16 getBPPeriod( void ) { - // TODO - remove this test code - fpgaActuatorSetPoints.fpgaGenWrRd = 0x1234; - - return fpgaSensorReadings.BPSpeed; + return fpgaSensorReadings.BPPeriod; } /*********************************************************************//**