You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi !my english is limited 我猜你是中国人!我也是!如果可以的话请求你的帮助![email protected]
i want to turn by gyro,but i fail,the degrees of gyro is raising ,is a bug?how can i fix it?
void GyroLeftTurn(int nLTargetDegree, int nTurnLPower) {
//ev3_gyro_sensor_reset (SENSOR_G);
while (-1 * (ev3_gyro_sensor_get_angle(SENSOR_G)) <= nLTargetDegree) {
ev3_motor_set_power(R_MOTOR, nTurnLPower);
ev3_motor_set_power(L_MOTOR, 0);
}
hi !my english is limited 我猜你是中国人!我也是!如果可以的话请求你的帮助![email protected]
i want to turn by gyro,but i fail,the degrees of gyro is raising ,is a bug?how can i fix it?
void GyroLeftTurn(int nLTargetDegree, int nTurnLPower) {
//ev3_gyro_sensor_reset (SENSOR_G);
while (-1 * (ev3_gyro_sensor_get_angle(SENSOR_G)) <= nLTargetDegree) {
ev3_motor_set_power(R_MOTOR, nTurnLPower);
ev3_motor_set_power(L_MOTOR, 0);
}
}
The text was updated successfully, but these errors were encountered: