Skip to content

Commit

Permalink
wip5
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Oct 19, 2024
1 parent e0a0809 commit 1ea6c8d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libraries/AP_Mount/AP_Mount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,18 @@ void AP_Mount::set_yaw_lock(uint8_t instance, bool yaw_lock)
backend->set_yaw_lock(yaw_lock);
}

// set mount operating mode
void AP_Mount::set_mount_mode( uint8_t mount_mode)
{
auto *backend = get_instance(_primary);
if (backend == nullptr) {
return;
}

// call backend's set_yaw_lock
backend->set_mount_mode(mount_mode);
}

// set angle target in degrees
// roll and pitch are in earth-frame
// yaw_is_earth_frame (aka yaw_lock) should be true if yaw angle is earth-frame, false if body-frame
Expand Down

0 comments on commit 1ea6c8d

Please sign in to comment.