@@ -2441,7 +2441,7 @@ private void Parent_OnPacketReceived(object sender, MAVLink.MAVLinkMessage mavLi
24412441 alt = altasl - ( float ) HomeAlt ;
24422442 alt_error = highlatency . target_altitude - alt ;
24432443 targetalt = highlatency . target_altitude ;
2444- wp_dist = highlatency . target_distance ;
2444+ wp_dist = highlatency . target_distance * 10 ;
24452445 wpno = highlatency . wp_num ;
24462446
24472447 if ( highlatency . failure_flags != 0 )
@@ -2471,15 +2471,15 @@ private void Parent_OnPacketReceived(object sender, MAVLink.MAVLinkMessage mavLi
24712471 yaw = highlatency . heading * 2 ;
24722472 target_bearing = highlatency . target_heading * 2 ;
24732473 ch3percent = highlatency . throttle ;
2474- airspeed = highlatency . airspeed ;
2475- targetairspeed = highlatency . airspeed_sp ;
2476- groundspeed = highlatency . groundspeed ;
2474+ airspeed = highlatency . airspeed / 5.0f ;
2475+ targetairspeed = highlatency . airspeed_sp / 5.0f ;
2476+ groundspeed = highlatency . groundspeed / 5.0f ;
24772477 wind_vel = highlatency . windspeed / 5.0f ;
24782478 wind_dir = highlatency . wind_heading * 2 ;
24792479 gpshdop = highlatency . eph ;
24802480 // epv
24812481 airspeed1_temp = highlatency . temperature_air ;
2482- climbrate = highlatency . climb_rate ;
2482+ climbrate = highlatency . climb_rate * 10 ;
24832483 battery_remaining = highlatency . battery ;
24842484
24852485 }
0 commit comments