test: Correct vectors used by fake accelerometer

This commit is contained in:
Bastien Nocera
2016-12-02 12:31:26 +01:00
parent 8b91629cc5
commit b2936ea4fc

View File

@@ -199,21 +199,21 @@ check_keyboard (GIOChannel *source,
switch (buf[0]) { switch (buf[0]) {
case 'u': case 'u':
data->accel_x = 0; data->accel_x = 0;
data->accel_y = ONEG; data->accel_y = -ONEG;
data->accel_z = 0; data->accel_z = 0;
break; break;
case 'd': case 'd':
data->accel_x = 0; data->accel_x = 0;
data->accel_y = -ONEG; data->accel_y = ONEG;
data->accel_z = 0; data->accel_z = 0;
break; break;
case 'l': case 'l':
data->accel_x = -ONEG; data->accel_x = ONEG;
data->accel_y = 0; data->accel_y = 0;
data->accel_z = 0; data->accel_z = 0;
break; break;
case 'r': case 'r':
data->accel_x = ONEG; data->accel_x = -ONEG;
data->accel_y = 0; data->accel_y = 0;
data->accel_z = 0; data->accel_z = 0;
break; break;