cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
AOloopControl_PredictiveControl_builPFloop_WatchInput.c File Reference

Assemble input data from telemetry stream. More...

#include <math.h>
#include <stdint.h>
#include <unistd.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <pthread.h>
#include <time.h>
#include <fitsio.h>
#include "CommandLineInterface/CLIcore.h"
#include "00CORE/00CORE.h"
#include "COREMOD_memory/COREMOD_memory.h"
#include "COREMOD_iofits/COREMOD_iofits.h"
#include "AOloopControl/AOloopControl.h"
#include "AOloopControl_PredictiveControl/AOloopControl_PredictiveControl.h"
Include dependency graph for AOloopControl_PredictiveControl_builPFloop_WatchInput.c:

Macros

#define _GNU_SOURCE
 

Functions

imageID AOloopControl_PredictiveControl_builPFloop_WatchInput (long loop, long PFblock, long PFblockStart, long PFblockEnd, long NBbuff)
 

Detailed Description

Assemble input data from telemetry stream.

Change log

  • 20180518 Guyon File creation (split from AOloopControl_PredictiveControl)

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Function Documentation

◆ AOloopControl_PredictiveControl_builPFloop_WatchInput()

imageID AOloopControl_PredictiveControl_builPFloop_WatchInput ( long  loop,
long  PFblock,
long  PFblockStart,
long  PFblockEnd,
long  NBbuff 
)

Purpose

Listens to real-time telemetry streams buffers aol<loop>_modeval_ol_logbuff0 and aol<loop>_modeval_ol_logbuff1

When new buffer is complete, extract the requested values from it and write to aol<loop>_modevalol_PFb<PFblock>

Arguments

Parameters
[in]loopLONG loop index
[in]PFblockLONG Block number
[in]PFblockStartLONG Block start index
[in]PFblockEndLONG Block end index

#param[in] NBbuff LONG Number of input buffers to merge for each output