AP_Airspeed: correct example; need instantiated AHRS for windspeed_max

This commit is contained in:
Peter Barker 2019-11-08 08:08:54 +11:00 committed by Peter Barker
parent f15459f25e
commit f407e0dd55
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@
*
*/
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Airspeed/AP_Airspeed.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
@ -30,6 +31,9 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
float temperature;
// create an AHRS object for get_airspeed_max
AP_AHRS_DCM ahrs;
// create airspeed object
AP_Airspeed airspeed;