Browse Source

HVB returned to offset

develop
Arash Aletayeb 3 years ago
parent
commit
6764a19e76
  1. 2
      developHw.pro.user
  2. 24
      src/model/hardware/core/lowLevelApi/register/boardsCtrlMngt/BoardsCtrlMngt.cpp

2
developHw.pro.user

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.0, 2022-04-11T10:56:26. --> <!-- Written by QtCreator 4.10.0, 2022-06-19T08:15:44. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>

24
src/model/hardware/core/lowLevelApi/register/boardsCtrlMngt/BoardsCtrlMngt.cpp

@ -800,18 +800,18 @@ void BoardsCtrlMngt::mpsHvSet(float& hva, float& hvb) const
_mpsDacs->hvaValue = hva; _mpsDacs->hvaValue = hva;
} }
//if(hvb > HVB_MAX_VALUE) // if(hvb > HVB_MAX_VALUE)
//{ // {
//_mpsDacs->hvbValue = HVB_MAX_VALUE; // _mpsDacs->hvbValue = HVB_MAX_VALUE;
//} // }
//else if (hvb < HVB_Offset) // else if (hvb < HVB_Offset)
//{ // {
//_mpsDacs->hvbValue = HVB_Offset; // _mpsDacs->hvbValue = HVB_Offset;
//} // }
//else // else
//{ // {
//_mpsDacs->hvbValue = hvb; // _mpsDacs->hvbValue = hvb;
//} // }
_mpsDacs->hvbValue = HVB_Offset; _mpsDacs->hvbValue = HVB_Offset;
_mpsDacs->cwdValue = CWD_Offset; _mpsDacs->cwdValue = CWD_Offset;

Loading…
Cancel
Save