You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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.  The first of these is found in motors.c, which had code that read:

 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