Skip to content

Help!!!!!!! #3

Description

@judemoses

hi !my english is limited 我猜你是中国人!我也是!如果可以的话请求你的帮助!judefax@163.com
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);
}

ev3_motor_stop(L_MOTOR, true);
ev3_motor_stop(R_MOTOR, true);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions