SITL: added SIM_OSD_ROWS and SIM_OSD_COLUMNS

This commit is contained in:
Andrew Tridgell 2024-03-25 09:20:11 +11:00
parent 8ccec7615c
commit feb8c3be67
2 changed files with 19 additions and 0 deletions

View File

@ -524,6 +524,20 @@ const AP_Param::GroupInfo SIM::var_info3[] = {
// @Bitmask: 0:MAVLink,3:SageTechMXS
AP_GROUPINFO("ADSB_TYPES", 52, SIM, adsb_types, 1),
#ifdef WITH_SITL_OSD
// @Param: OSD_COLUMNS
// @DisplayName: Simulated OSD number of text columns
// @Description: Simulated OSD number of text columns
// @Range: 10 100
AP_GROUPINFO("OSD_COLUMNS", 53, SIM, osd_columns, 30),
// @Param: OSD_ROWS
// @DisplayName: Simulated OSD number of text rows
// @Description: Simulated OSD number of text rows
// @Range: 10 100
AP_GROUPINFO("OSD_ROWS", 54, SIM, osd_rows, 16),
#endif
#ifdef SFML_JOYSTICK
AP_SUBGROUPEXTENSION("", 63, SIM, var_sfml_joystick),
#endif // SFML_JOYSTICK

View File

@ -538,6 +538,11 @@ public:
AP_Int8 gyro_file_rw;
AP_Int8 accel_file_rw;
#endif
#ifdef WITH_SITL_OSD
AP_Int16 osd_rows;
AP_Int16 osd_columns;
#endif
};
} // namespace SITL