mirror of https://github.com/ArduPilot/ardupilot
Plane: Plane support for Frsky passthrough protocol
This commit is contained in:
parent
5125846ac0
commit
0b666d4933
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue