AP_Mount: add Siyi ZT6 support

This commit is contained in:
Randy Mackay 2024-05-21 16:04:53 +09:00
parent 392c563a04
commit db22aaad50
2 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,7 @@ const AP_Mount_Siyi::HWInfo AP_Mount_Siyi::hardware_lookup_table[] {
{{'7','3'}, "A8"}, {{'7','3'}, "A8"},
{{'6','B'}, "ZR10"}, {{'6','B'}, "ZR10"},
{{'7','8'}, "ZR30"}, {{'7','8'}, "ZR30"},
{{'8','2'}, "ZT6"},
{{'7','A'}, "ZT30"}, {{'7','A'}, "ZT30"},
}; };
@ -825,7 +826,8 @@ float AP_Mount_Siyi::get_zoom_mult_max() const
return 0; return 0;
case HardwareModel::A2: case HardwareModel::A2:
case HardwareModel::A8: case HardwareModel::A8:
// a8 has 6x digital zoom case HardwareModel::ZT6:
// a8, zt6 have 6x digital zoom
return 6; return 6;
case HardwareModel::ZR10: case HardwareModel::ZR10:
case HardwareModel::ZR30: case HardwareModel::ZR30:
@ -1043,6 +1045,7 @@ void AP_Mount_Siyi::send_camera_information(mavlink_channel_t chan) const
case HardwareModel::UNKNOWN: case HardwareModel::UNKNOWN:
case HardwareModel::A2: case HardwareModel::A2:
case HardwareModel::A8: case HardwareModel::A8:
case HardwareModel::ZT6:
focal_length_mm = 21; focal_length_mm = 21;
break; break;
case HardwareModel::ZR10: case HardwareModel::ZR10:
@ -1150,6 +1153,7 @@ void AP_Mount_Siyi::check_firmware_version() const
case HardwareModel::A2: case HardwareModel::A2:
case HardwareModel::ZR10: case HardwareModel::ZR10:
case HardwareModel::ZR30: case HardwareModel::ZR30:
case HardwareModel::ZT6:
case HardwareModel::ZT30: case HardwareModel::ZT30:
// TBD // TBD
break; break;

View File

@ -166,6 +166,7 @@ private:
A8, A8,
ZR10, ZR10,
ZR30, ZR30,
ZT6,
ZT30 ZT30
} _hardware_model; } _hardware_model;