cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
Functions with high priority scheduler

AOloopControl_IOtools - 3. DATA STREAMS PROCESSING

Data streams real-time processing

errno_t AOloopControl_IOtools_imAlignStream (const char *IDname, int xbox0, int ybox0, const char *IDref_name, const char *IDout_name, int insem)
 Aligns data stream. More...
 

TEMPLATEMODULE - 2.1. SECOND GROUP OF FUNCTIONS - SUBGROUP1

int templatemodule_examplefunc01 (const char *namein, float val1, int n1, float *restrict farray)
 

Detailed Description

Function Documentation

◆ AOloopControl_IOtools_imAlignStream()

errno_t AOloopControl_IOtools_imAlignStream ( const char *  IDname,
int  xbox0,
int  ybox0,
const char *  IDref_name,
const char *  IDout_name,
int  insem 
)

Aligns data stream.

Purpose

Align image stream in real-time

Arguments

IDname is input stream
The alignment is computed using a rectangular box of starting at (xbox0,ybox0)
Reference image used for alignment is provided by IDref_name

Use

Function runs a loop. Reacts to updates to stream IDname

Details

Returns
number of iteration [int]

◆ templatemodule_examplefunc01()

int templatemodule_examplefunc01 ( const char *  namein,
float  val1,
int  n1,
float *restrict  farray 
)

Purpose

This function demonstrates use of seteuid, sched_setscheduler
Note that fields "Use", "return", "not" and "warning" are optional

Arguments

Brief description of arguments is in .h file
A more detailed description of arguments in provided here

Use

Use section is optional to use this function, call it as


Returns
number of iteration [int]
Note
sched_setscheduler and seteuid not supported under OS-X
Warning
This function does nothing useful

Details


Code Description

Set up priviledges

Execute loop