Skip to content

Commit

Permalink
ArduPlane: Set default airspeed used by estimators
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Riseborough committed Mar 5, 2020
1 parent ac966f5 commit 6fc86ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ArduPlane/ArduPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ void Plane::one_second_loop()
adsb.set_stall_speed_cm(aparm.airspeed_min);
adsb.set_max_speed(aparm.airspeed_max);

ahrs.writeDefaultAirSpeed(0.01f * (float)((aparm.airspeed_min + aparm.airspeed_max)/2));

// sync MAVLink system ID
mavlink_system.sysid = g.sysid_this_mav;

Expand Down

0 comments on commit 6fc86ba

Please sign in to comment.