- Added Sycamore protocol and command context to SICS
- Added sinfo to SICS - Added driver for TCP/IP Astrium velocity selector - Added driver for TCP/IP Astrium chopper controller
This commit is contained in:
@ -55,7 +55,8 @@ static void KillTricsSupport(void *pData){
|
||||
}
|
||||
}
|
||||
/*=====================================================================*/
|
||||
static int FrameSupInterest(int iEvent, void *pEvent, void *pUser){
|
||||
static int FrameSupInterest(int iEvent, void *pEvent, void *pUser,
|
||||
commandContext cc){
|
||||
SConnection *pCon = NULL;
|
||||
int *iFrame;
|
||||
char pBueffel[512];
|
||||
@ -68,7 +69,9 @@ static int FrameSupInterest(int iEvent, void *pEvent, void *pUser){
|
||||
iFrame = (int *)pEvent;
|
||||
assert(pCon);
|
||||
sprintf(pBueffel,"framenumber = %d",*iFrame);
|
||||
SCPushContext2(pCon,cc);
|
||||
SCWrite(pCon,pBueffel,eWarning);
|
||||
SCPopContext(pCon);
|
||||
return 1;
|
||||
}
|
||||
/*======================================================================
|
||||
@ -182,8 +185,9 @@ int TricsSupportAction(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
return 1;
|
||||
}
|
||||
else if(strcmp(argv[1],"interest") == 0){
|
||||
lID = RegisterCallback(self->pCall, NEWFRAME, FrameSupInterest,
|
||||
pCon, NULL);
|
||||
lID = RegisterCallback(self->pCall, SCGetContext(pCon),
|
||||
NEWFRAME, FrameSupInterest,
|
||||
pCon, NULL);
|
||||
SCRegister(pCon,pSics, self->pCall,lID);
|
||||
SCSendOK(pCon);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user