Skip to content

Commit

Permalink
AP_Camera: convert runcam camera types
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Sep 14, 2024
1 parent e78c222 commit 7707b78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libraries/AP_Camera/AP_Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,13 @@ void AP_Camera::convert_params()
// CAM_TRIGG_TYPE was set to Relay, GoPro or Mount
cam1_type = cam_trigg_type + 1;
}
#if AP_CAMERA_RUNCAM_ENABLED
// RunCam protocol configured so set cam type to RunCam
AP_SerialManager *serial_manager = AP_SerialManager::get_singleton();
if (serial_manager && serial_manager->find_serial(AP_SerialManager::SerialProtocol_RunCam, 0)) {
cam1_type = uint8_t(CameraType::RUNCAM);
}
#endif
_params[0].type.set_and_save(cam1_type);

// convert CAM_DURATION (in deci-seconds) to CAM1_DURATION (in seconds)
Expand Down

0 comments on commit 7707b78

Please sign in to comment.