The control software is written in C and edited in X-Code.  Most of the backbone is from Christoph Birk, but John Bochanski has also made some edits.  They are listed below.


motors.c   July 15, 2009
 if (nyden_socket == -1) { // not connected
      nyden_socket = TCPIP_CreateClientSocket(nyden_host,NYDEN_PORT,&err); // end JJB edit

    }}

which was changed to

 if (nyden_socket == -1) { char *p; u_short port=0; // edit by JJB not connected
      strcpy(buf,nyden_host);
      p = strchr(buf,':');
        if (p) {
        *p = '\0'; port = atoi(p+1);       
      nyden_socket = TCPIP_CreateClientSocket(buf,port,&err); // end JJB edit
    }}
 

the reason for this change is because TCPIP_CreateClientSocket looks for an IP, then a port number, but the first version was giving both at once (nyden_host was equal to 18.75.3.111:10001)



[]

  • No labels