AP_OSD: default OSD_TYPE to SITL when enabled with --osd

This commit is contained in:
Andrew Tridgell 2018-07-08 07:52:46 +10:00
parent 950be3fc17
commit dbe096e2f3

View File

@ -87,6 +87,9 @@ AP_OSD::AP_OSD()
AP_Param::setup_object_defaults(this, var_info);
// default first screen enabled
screen[0].enabled = 1;
#ifdef WITH_SITL_OSD
osd_type.set_default(2);
#endif
}
void AP_OSD::init()