|
@@ -1587,7 +1587,7 @@ func ProduceWindow() {
|
|
// 更新共享变量
|
|
// 更新共享变量
|
|
for _, obj := range data.Objs {
|
|
for _, obj := range data.Objs {
|
|
YawOfCicvLocation, _ := shareVars.Load("YawOfCicvLocation")
|
|
YawOfCicvLocation, _ := shareVars.Load("YawOfCicvLocation")
|
|
- diffh := (float64(obj.Heading - YawOfCicvLocation.(float32)))
|
|
|
|
|
|
+ diffh := float64(obj.Heading) - YawOfCicvLocation.(float64)
|
|
if diffh < -180.0 {
|
|
if diffh < -180.0 {
|
|
diffh = 360.0 + diffh
|
|
diffh = 360.0 + diffh
|
|
} else if diffh > 180.0 {
|
|
} else if diffh > 180.0 {
|