Copter: give the AHRS access to the range beacon sensor

This commit is contained in:
priseborough 2016-10-26 11:07:40 +11:00 committed by Randy Mackay
parent 21c7ea1df7
commit 3847975844
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ void Copter::init_ardupilot()
*/
hal.scheduler->register_timer_failsafe(failsafe_check_static, 1000);
// give AHRS the rnage beacon sensor
ahrs.set_beacon(&g2.beacon);
// Do GPS init
gps.init(&DataFlash, serial_manager);