.. default-domain:: c .. highlight:: c Raster Prop Monitor =================== Provides functionality to interact with the `Raster Prop Monitor`_ mod. |Raster Prop Monitor tested| .. toctree:: :includehidden: :maxdepth: 1 raster-prop-monitor/raster-prop-monitor raster-prop-monitor/computer raster-prop-monitor/monitor raster-prop-monitor/display raster-prop-monitor/external-camera Example ------- kRPC adds a page named ``krpc`` to every Raster Prop Monitor screen. The page shows the screen's :type:`krpc_RasterPropMonitor_Display_t`, which a script draws on. The following example draws a page on the first screen in the active vessel's IVA, showing whether SAS is on, and makes the screen's NAV button show it: .. literalinclude:: /scripts/api/raster-prop-monitor/RasterPropMonitorExample.c The page text names Raster Prop Monitor's ``SAS`` variable, and the format gives ``ON`` for 1 and ``OFF`` for 0. Raster Prop Monitor updates the page as SAS changes, however it is switched. On the screens of the Mk1 Lander Can, NAV is ``buttonR1``. This client has no events, so the example does not answer the ENTER button. .. include:: /mods.inc