Search:

Type: Posts; User: jcarellanov

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    4,733

    I'm goig to try for (i=0;i

    I'm goig to try


    for (i=0;i<6;i++) //inicializacion

    {
    strncpy(temp1,buffer+i*VECTOR_SIZE,VECTOR_SIZE);
    velocities[i]=atof(temp1);

    }
  2. Replies
    10
    Views
    4,733

    char buffer[BUFSIZE] As of right now there are...

    char buffer[BUFSIZE]

    As of right now there are seven different elements in the string: x,y,z linear and x,y,z angular. There's an extra character E,C or H that tells the machine to exit the...
  3. Replies
    10
    Views
    4,733

    I was under the impression that memcpy simply...

    I was under the impression that memcpy simply copied the memory blocks, but but didn't format the data. Therefore I used sscanf to format them as strings, was my logic wrong?
  4. Replies
    10
    Views
    4,733

    I'm not sure I follow, could you please elaborate...

    I'm not sure I follow, could you please elaborate a bit more? Also, the string consist of 6 different characters at all times (3 linear components and 3 angular).

    @laserlight buffer is global....
  5. Replies
    10
    Views
    4,733

    Repeated calls to sscanf

    int convert_data(int id_limb){
    char temp1[VECTOR_SIZE];
    char temp2[VECTOR_SIZE];
    char code;
    char code_temp;
    double velocities[8];
    int i;


    for (i=0;i<6;i++) //initializing
Results 1 to 5 of 5