Skip to content

Commit

Permalink
AP_Mount: modified the mode for controlling Picture-in-Picture.
Browse files Browse the repository at this point in the history
  • Loading branch information
laozhou-fujian committed Mar 1, 2024
1 parent 33ddfe3 commit dc3ab82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/AP_Mount/AP_Mount_Topotek.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,10 @@ bool AP_Mount_Topotek::set_lens(uint8_t lens)
if (!_initialised) {
return false;
}

return (send_packet(_next_pip_mode, 12));
if (lens > 0) {
return (send_packet(_next_pip_mode, 12));
}
return false;
}

// send camera information message to GCS
Expand Down

0 comments on commit dc3ab82

Please sign in to comment.