Skip to content

Bug Report: mrp not working #150

@Zacharyprime

Description

@Zacharyprime

The discord user "Jammo2000" has reported that mrp is not functional.
He said he recreated the problem using the following code:

#include <kipr/wombat.h>

#define right_motor 1
#define left_motor 3
int main(){
    int i;
	for(i = 0;i<100;i++){
    	mrp(right_motor, 1000, -1000);
    	mrp(left_motor, 1000, 1000);
        bmd(right_motor);
        bmd(left_motor);
        msleep(1000);
        mrp(right_motor, 1000, 1000);
    	mrp(left_motor, 1000, -1000);
        bmd(right_motor);
        bmd(left_motor);
        msleep(1000);
    }
    return 0;
}

Quote from the user:
"So, the move_relative_position (mrp) function in the kipr library is broken. 5-10% of the time it simply fails to move the motor at all."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting PRThis task is complete and just awaiting a pull request to get reviewed.Clean Up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions