[ Maverik Level 2 functions ]

#

mav_navigate

## Summary

Call a navigation function.

## Syntax

void mav_navigate(MAV_navigatorFn fn, MAV_viewParams *vp, float am, float ls, float as);

- MAV_navigatorFn fn
  Navigation function to call.

- MAV_viewParams *vp
  View parameters to modify.

- float am
  Amount by which to modify the view parameters.

- float ls
  Linear scale factor.

- float as
  Angular scale factor.

## Description

This function calls the navigation function `fn`, to modify the view parameters `vp`. It modifies them by amount `am`, using linear scale `ls` to convert `am` into application units, and angular scale `as` to to convert `am` into radians.

mav_navigate is called by the various device-specific navigation functions, in order to perform navigation. Here, `am` will be measured in the intrinsic units of the device (pixels or inches, for example), and the scaling factors `ls` and `as` are provided by the application to map these values into application world-coordinate units.

Back to the index page.