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"?>
<!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>
<data>
<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;
}
//if(hvb > HVB_MAX_VALUE)
//{
//_mpsDacs->hvbValue = HVB_MAX_VALUE;
//}
//else if (hvb < HVB_Offset)
//{
//_mpsDacs->hvbValue = HVB_Offset;
//}
//else
//{
//_mpsDacs->hvbValue = hvb;
//}
// if(hvb > HVB_MAX_VALUE)
// {
// _mpsDacs->hvbValue = HVB_MAX_VALUE;
// }
// else if (hvb < HVB_Offset)
// {
// _mpsDacs->hvbValue = HVB_Offset;
// }
// else
// {
// _mpsDacs->hvbValue = hvb;
// }
_mpsDacs->hvbValue = HVB_Offset;
_mpsDacs->cwdValue = CWD_Offset;

Loading…
Cancel
Save