Plane indianness + Plane timeout misplaced

This commit is contained in:
xdrm-brackets 2017-04-25 16:34:04 +02:00
parent 387e55c092
commit 80f0aa95f6
1 changed files with 6 additions and 6 deletions

View File

@ -122,11 +122,11 @@ void send_data(){
/* 2. création objet */
strcpy(request.code, numero_vol);
request.x = crd.x;
request.y = crd.y;
request.z = crd.z;
request.cap = ctrl.cap;
request.spd = ctrl.speed;
request.x = htonl( crd.x );
request.y = htonl( crd.y );
request.z = htonl( crd.z );
request.cap = htonl( ctrl.cap );
request.spd = htonl( ctrl.speed );
/* 3. Copie buffer */
strcpy(buffer, request.code);
@ -245,9 +245,9 @@ void update(){
while( 1 ){
sleep(PAUSE);
calc_ctrl();
send_data();
sleep(PAUSE);
}