- Introduced a new trace facility

- Fixed performance problems in many protocol drivers.
This commit is contained in:
koennecke
2011-06-29 07:53:54 +00:00
parent 30fa6e9081
commit 8162f117bd
5 changed files with 38 additions and 3 deletions

View File

@ -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);
}
}
/*-------------------------------------------------------------------*/