Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_Mount: add Siyi ZT6 support #27119

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion libraries/AP_Mount/AP_Mount_Siyi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const AP_Mount_Siyi::HWInfo AP_Mount_Siyi::hardware_lookup_table[] {
{{'7','3'}, "A8"},
{{'6','B'}, "ZR10"},
{{'7','8'}, "ZR30"},
{{'8','2'}, "ZT6"},
{{'7','A'}, "ZT30"},
};

Expand Down Expand Up @@ -827,7 +828,8 @@ float AP_Mount_Siyi::get_zoom_mult_max() const
return 0;
case HardwareModel::A2:
case HardwareModel::A8:
// a8 has 6x digital zoom
case HardwareModel::ZT6:
// a8, zt6 have 6x digital zoom
return 6;
case HardwareModel::ZR10:
case HardwareModel::ZR30:
Expand Down Expand Up @@ -1045,6 +1047,7 @@ void AP_Mount_Siyi::send_camera_information(mavlink_channel_t chan) const
case HardwareModel::UNKNOWN:
case HardwareModel::A2:
case HardwareModel::A8:
case HardwareModel::ZT6:
focal_length_mm = 21;
break;
case HardwareModel::ZR10:
Expand Down Expand Up @@ -1152,6 +1155,7 @@ void AP_Mount_Siyi::check_firmware_version() const
case HardwareModel::A2:
case HardwareModel::ZR10:
case HardwareModel::ZR30:
case HardwareModel::ZT6:
case HardwareModel::ZT30:
// TBD
break;
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_Mount/AP_Mount_Siyi.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class AP_Mount_Siyi : public AP_Mount_Backend
A8,
ZR10,
ZR30,
ZT6,
ZT30
} _hardware_model;

Expand Down
Loading