I am trying to understand the dynamics of Tetrix motors using RobotC for FTC hardware environment.

Background:I have a simple testbed with (3) Tetrix motors I'm trying to sync. Note: the motors have no load on them. I want to be able to sync the motors as fast as possible and am trying to develope a control scheme. I've tried testing with and without PID attribute.

I've tried using encoder position error alone to feedback motor control, but without success. I'm now trying to also use the PWM level to help identify if I should increase the slow motor(s) or decrease fast one(s).

However, it seems I need a motor command below 80 in order to see a PWMlevel below 100. Below is a code snippet to see where I'm drawing my conclusions. the "xMotorPower is assigned to each respective motor.

I believe this is cause by the `motorPWMLevel[]` "command". This is because technically that is a VEX command, so I don't think it would work for TETRIX. It is not a documented function either.

EDIT: I looked into RobotCIntrinsics.h, and it is in there, and it should work... Anyone else? It seems like this would be a nice function to have, if it worked. Then again, they might have yet to implement it, which is why your code is breaking.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum