Plane indianness + Plane timeout misplaced
This commit is contained in:
parent
387e55c092
commit
80f0aa95f6
|
@ -122,11 +122,11 @@ void send_data(){
|
||||||
|
|
||||||
/* 2. création objet */
|
/* 2. création objet */
|
||||||
strcpy(request.code, numero_vol);
|
strcpy(request.code, numero_vol);
|
||||||
request.x = crd.x;
|
request.x = htonl( crd.x );
|
||||||
request.y = crd.y;
|
request.y = htonl( crd.y );
|
||||||
request.z = crd.z;
|
request.z = htonl( crd.z );
|
||||||
request.cap = ctrl.cap;
|
request.cap = htonl( ctrl.cap );
|
||||||
request.spd = ctrl.speed;
|
request.spd = htonl( ctrl.speed );
|
||||||
|
|
||||||
/* 3. Copie buffer */
|
/* 3. Copie buffer */
|
||||||
strcpy(buffer, request.code);
|
strcpy(buffer, request.code);
|
||||||
|
@ -245,9 +245,9 @@ void update(){
|
||||||
|
|
||||||
while( 1 ){
|
while( 1 ){
|
||||||
|
|
||||||
sleep(PAUSE);
|
|
||||||
calc_ctrl();
|
calc_ctrl();
|
||||||
send_data();
|
send_data();
|
||||||
|
sleep(PAUSE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue