- Introduced a new trace facility
- Fixed performance problems in many protocol drivers.
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
copyright: see copyright.h
|
||||
|
||||
Uwe Filges, November 2001
|
||||
|
||||
Various edits, added rotaion_speed_targtes, Mark Koennecke, 2011
|
||||
----------------------------------------------------------------------------*/
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
@ -24,6 +26,7 @@
|
||||
#include "polterwrite.h"
|
||||
#include "sicsvar.h"
|
||||
#include "nxscript.h"
|
||||
#include "sicshipadaba.h"
|
||||
|
||||
/*
|
||||
diaphragm1 - chopper
|
||||
@ -128,9 +131,18 @@ static void writePolterdiGlobal(NXhandle hfil, NXdict hdict,
|
||||
/*-------------------------------------------------------------------*/
|
||||
static void writeChopper(NXhandle hfil, NXdict hdict, SConnection * pCon)
|
||||
{
|
||||
pHdb node = NULL;
|
||||
float fVal;
|
||||
|
||||
SNXSPutVariable(pServ->pSics, pCon, hfil, hdict, "cname", "choppername");
|
||||
SNXSPutDrivable(pServ->pSics, pCon, hfil, hdict, "chopperspeed", "crot");
|
||||
SNXSPutDrivable(pServ->pSics, pCon, hfil, hdict, "chopperphase", "cphase");
|
||||
|
||||
node = FindHdbNode(NULL,"/sics/choco/chopper/nspee", NULL);
|
||||
if(node != NULL){
|
||||
fVal = (float)node->value.v.doubleValue;
|
||||
NXDputalias(hfil,hdict,"crottarget",&fVal);
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user