航点下载和编辑乘10e不合理问题解决,找到统一
This commit is contained in:
@@ -173,8 +173,8 @@ void propertyui::rebuildUI(QString CMD)
|
||||
}
|
||||
|
||||
//载入经纬度
|
||||
ui->pushButton_Lat->setText(QString::number(m_x * 10e-7,'f',6));
|
||||
ui->pushButton_Lng->setText(QString::number(m_y * 10e-7,'f',6));
|
||||
ui->pushButton_Lat->setText(QString::number(m_x * 10e-8,'f',6));
|
||||
ui->pushButton_Lng->setText(QString::number(m_y * 10e-8,'f',6));
|
||||
|
||||
|
||||
|
||||
@@ -414,8 +414,8 @@ void propertyui::WayPointPropertyUpdate(void)
|
||||
|
||||
//设置经纬度
|
||||
|
||||
m_x = ui->pushButton_Lat->text().toDouble() * 10e5;
|
||||
m_y = ui->pushButton_Lng->text().toDouble() * 10e5;
|
||||
m_x = ui->pushButton_Lat->text().toDouble() * 10e6;
|
||||
m_y = ui->pushButton_Lng->text().toDouble() * 10e6;
|
||||
|
||||
qDebug() << m_x << m_y;
|
||||
|
||||
|
||||
@@ -636,8 +636,8 @@ void WayPointItem::setWPProperty(float param1,float param2,float param3,float pa
|
||||
|
||||
internals::PointLatLng latlng;
|
||||
|
||||
latlng.SetLng(y * 10e-7);
|
||||
latlng.SetLat(x * 10e-7);
|
||||
latlng.SetLng(y * 10e-8);
|
||||
latlng.SetLat(x * 10e-8);
|
||||
|
||||
SetCoord(latlng);
|
||||
|
||||
@@ -713,8 +713,8 @@ void WayPointItem::SetDefault(double lat,double lng,float alt,uint16_t seq)
|
||||
property.param2 = 50;
|
||||
property.param3 = 50;
|
||||
property.param4 = 0;
|
||||
property.x = lat * 10e5;
|
||||
property.y = lng * 10e5;
|
||||
property.x = lat * 10e6;
|
||||
property.y = lng * 10e6;
|
||||
property.z = alt;
|
||||
property.seq = seq;
|
||||
property.group = 0;
|
||||
@@ -769,12 +769,12 @@ void WayPointItem::SetParam4(float value)
|
||||
|
||||
void WayPointItem::SetLat(double value)
|
||||
{
|
||||
property.x = value * 10e5;
|
||||
property.x = value * 10e6;
|
||||
}
|
||||
|
||||
void WayPointItem::SetLng(double value)
|
||||
{
|
||||
property.y = value * 10e5;
|
||||
property.y = value * 10e6;
|
||||
}
|
||||
|
||||
void WayPointItem::SetAlt(float value)
|
||||
|
||||
Reference in New Issue
Block a user