MAVLink: use the configured system ID for ArduCopter

This commit is contained in:
Andrew Tridgell 2011-12-03 07:54:36 +11:00
parent 9b3ce4a96a
commit 63126ece83
1 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,9 @@ static void init_ardupilot()
gcs3.init(&Serial3);
#endif
// identify ourselves correctly with the ground station
mavlink_system.sysid = g.sysid_this_mav;
#ifdef RADIO_OVERRIDE_DEFAULTS
{
int16_t rc_override[8] = RADIO_OVERRIDE_DEFAULTS;