伺服界面,舵机偏差值

This commit is contained in:
hm
2020-12-09 11:49:59 +08:00
parent 936cc3b1d6
commit 81be3445e8
3 changed files with 22 additions and 2 deletions
+17
View File
@@ -36,6 +36,23 @@ ServoSystem::ServoSystem(QWidget *parent) :
setCheckState(11,state::failure);
Config *cfg = new Config();
QVariant la;
QVariant ra;
QVariant le;
QVariant re;
QVariant ru;
cfg->getServoOffset(&la,&ra,&le,&re,&ru);
m_la = la.toFloat();
m_ra = ra.toFloat();
m_le = le.toFloat();
m_re = re.toFloat();
m_ru = ru.toFloat();
}
ServoSystem::~ServoSystem()