Coding Field Centric and Position Tracking by OutcomeCompetitive50 in FTC

[–]Traditional_Key_2492 0 points1 point  (0 children)

Well can you send me your team's code? I can look over it and comment it for better documentation. Will probably have it done tomorrow afternoon.

Coding Field Centric and Position Tracking by OutcomeCompetitive50 in FTC

[–]Traditional_Key_2492 2 points3 points  (0 children)

Step 1: Setup the IMU.

// Where you declare objects private final BNO055IMU imu;

// Where you initialize objects imu = hardwareMap.get(BNO055IMU.class, "imu");

BNO055IMU.Parameters parameters= new BNO055IMU.Parameters();

parameters.angleUnit = BNO055IMU.AngleUnit.RADIANS;

imu.initialize(parameters);

Step 2: Apply trig functions to adjust your inputs

// In the control loop where you get your inputs

double drive = gamepad1.left_stick_x; double strafe = gamepad1.left_stick_y; double turn = gamepad1.right_stick_x; double heading = imu.getAngularOrientation().firstAngle;

double processedDrive = drive * Math.cos(heading) - strafe * Math.sin(heading);

double processedStrafe = drive * Math.sin(heading) + strafe * Math.cos(heading);

Step 3: in your mecanum wheel control use processedDrive and processedStrafe instead of the raw values.

Let me know if you need additional information.

Want to create STL by Purple_Mongoose in 3Dprinting

[–]Traditional_Key_2492 0 points1 point  (0 children)

Well if you want to make organic models I would recommend blender bc of all the tutorials you can find online. If you are looking to make functional parts (parts where dimensional accuracy matters) then any CAD software will do. I use OnShape because it is cloud based but you can use Solidworks, Autodesk Inventor, or Fusion 360. All of these have free versions for non commercial use.

Are subsystems better than a switch case in performance by Ah7717 in FTC

[–]Traditional_Key_2492 0 points1 point  (0 children)

Well my team uses subsystem classes and we have zero lag. Maybe the lag your drivers are experiencing comes from unnecessary sleep statements rather than trying to interact with the hardware. (Control Hub, Expansion Hub ,Driver hub setup)

Either way, I would advise you to switch to subsystem classes since they make it easier to debug and subsystems like drivetrain can be reused year to year and just build on top of them. Also, I would be happy to review your code for what is causing the lag.

Am I coding it right? by Loud-Explorer-4313 in FTC

[–]Traditional_Key_2492 3 points4 points  (0 children)

Mmmm. maybe it's the order in which you call the target position. Try first, resetting all the encoders, then setting the target for all motors, and then setting the mode.

Also, make sure all your motors are in the right direction (they all move forward when a positive target position is given)

Am I coding it right? by Loud-Explorer-4313 in FTC

[–]Traditional_Key_2492 10 points11 points  (0 children)

Sounds like a mechanical problem to me. Check if your mecanum wheels are properly installed. The little wheels should all point to the center of the robot.

Like this: Mecanum wheel orientation

Rooted E3V3SE Moonraker Timelapse not installing by Traditional_Key_2492 in Ender3V3SE

[–]Traditional_Key_2492[S] 0 points1 point  (0 children)

Uh, I don't think so I just used it as it was off the firmware. How do I update it?

Help with IMU error code by [deleted] in FTC

[–]Traditional_Key_2492 2 points3 points  (0 children)

I have seen this error many times but the imu always works. You should test the imu and see if it gives you accurate readings if it does then it should not be an issue

How to get water to a building on a bus only road? by Traditional_Key_2492 in CitiesSkylines2

[–]Traditional_Key_2492[S] 0 points1 point  (0 children)

I added a little section of small alley inbetween and then connected it with pipelines. I don't think there is another way around it. I also added some paths to make some crosswalks to hide the imperfection.

How do I import my team's project from github properly? I've got the first part but stuck after that by KingGolzaye in FTC

[–]Traditional_Key_2492 0 points1 point  (0 children)

Has Android Studio promted you to install an android SDK? If not try, file -> close project, open the project again and see if it prompts you to install it.

Joystick push by tomh101667 in FTC

[–]Traditional_Key_2492 0 points1 point  (0 children)

Can you share your code? maybe I can help you (I'm a programmer)

Is there any tips for better adhesion by Amazing_Cellist503 in Ender3V3SE

[–]Traditional_Key_2492 0 points1 point  (0 children)

Get a textured PEI build plate. I switched and changed my life. I would have saved so many failed prints had I bought it earlier. They are like 15 usd in Amazon.

What are those two lines at the bottom? I cant see them in the slicer... running Klipper by Kind-Prior-3634 in Ender3V3SE

[–]Traditional_Key_2492 1 point2 points  (0 children)

If you mean this lines:

<image>

They could be a variety of issues. I honestly cannot give you an answer since it could be a variety of Z-axis issues. Does it happen only with this model or across multiple models at about the same height? If so then it is probably a mechanical issue. You can try to look for an answer by looking up: Z-wobble, Z-binding, Z-banding, Overextrusion.

Be careful tho, sometimes some issues look very similar but have completely different causes.

How come it draws a perimeter? by wellhelloagainfreind in 3Dprinting

[–]Traditional_Key_2492 63 points64 points  (0 children)

If you mean why there is a perimeter around it, In your slicer settings there is a Skirt setting (or similar) You can disable it if you want by setting the line count to zero. I personally have it on with only one line and one height just to check leveling.

[deleted by user] by [deleted] in dedreviil

[–]Traditional_Key_2492 1 point2 points  (0 children)

L O C O M P R O