mavlink: distance sensor: fix max value

This commit is contained in:
Thomas Gubler 2014-12-13 18:19:12 +01:00
parent 24fd099e58
commit ea4876da38
1 changed files with 1 additions and 1 deletions

View File

@ -2162,7 +2162,7 @@ protected:
msg.id = 0;
msg.orientation = 0;
msg.min_distance = range.minimum_distance * 100;
msg.max_distance = range.minimum_distance * 100;
msg.max_distance = range.maximum_distance * 100;
msg.current_distance = range.distance * 100;
msg.covariance = 20;