Plane: Plane support for Frsky passthrough protocol

This commit is contained in:
floaledm 2016-09-01 13:11:17 -05:00 committed by Tom Pittenger
parent 5125846ac0
commit 0b666d4933
2 changed files with 6 additions and 1 deletions

View File

@ -155,6 +155,9 @@ void Plane::update_is_flying_5Hz(void)
}
previous_is_flying = new_is_flying;
adsb.set_is_flying(new_is_flying);
#if FRSKY_TELEM_ENABLED == ENABLED
frsky_telemetry.set_is_flying(is_flying());
#endif
crash_detection_update();

View File

@ -160,7 +160,9 @@ void Plane::init_ardupilot()
// setup frsky
#if FRSKY_TELEM_ENABLED == ENABLED
// setup frsky, and pass a number of parameters to the library
frsky_telemetry.init(serial_manager);
frsky_telemetry.init(serial_manager, FIRMWARE_STRING,
MAV_TYPE_FIXED_WING,
&g.fs_batt_voltage, &g.fs_batt_mah);
#endif
mavlink_system.sysid = g.sysid_this_mav;