Skip to content

Instantly share code, notes, and snippets.

View DAflamingFOX's full-sized avatar
🤖
I've officially lost it.

Jeffrey Morris DAflamingFOX

🤖
I've officially lost it.
View GitHub Profile
@DAflamingFOX
DAflamingFOX / README.md
Last active October 8, 2025 23:06
Fixing MATLAB error 5201 on linux

The MATLAB Linux installer (at least on Fedora) seems to be spectacularly bad at it's job (not surprising considering they think indicies should start at 1).

This gist serves as a quide to fix the dreaded error 5201 and get on with your day.

First, an explaination: MATLAB will crash after ~2 minutes of appearing to be working fine, however in the bottom left it will simply say initializing and eventually the app will crash with no warnings of any kind.

if you run matlab from a console you get a glimpse of the problem:

❯ matlab
/*
* Copyright (c) 2023 Tigerbotics and it's members. All rights reserved.
* This work is licensed under the terms of the GNU GPLv3 license
* found in the root directory of this project.
*/
package io.github.tigerbotics7125.robot;
import com.pathplanner.lib.PathConstraints;
import com.pathplanner.lib.PathPlanner;
import com.pathplanner.lib.PathPlannerTrajectory;
{
"counts per rotation": 1.0,
"encoder type": "Encoder Port",
"encoding": false,
"gearing denominator": 1.0,
"gearing numerator": 272.7272,
"gyro": "Analog Gyro",
"gyro ctor": "0",
"is drivetrain": false,
"motor controllers": [
/*
* Copyright (c) 2023 Tigerbotics and it's members. All rights reserved.
* This work is licensed under the terms of the GNU GPLv3 license
* found in the root directory of this project.
*/
package io.github.tigerbotics7125.robot;
import edu.wpi.first.wpilibj.RobotState;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.shuffleboard.BuiltInLayouts;
@DAflamingFOX
DAflamingFOX / AStar.java
Last active February 6, 2023 06:57
Graphs in FRC
/*
* Copyright (c) 2022 Tigerbotics and it's members. All rights reserved.
* This work is licensed under the terms of the GNU GPLv3 license
* found in the root directory of this project.
*/
package io.github.tigerbotics7125.robot.graph;
import static io.github.tigerbotics7125.lib.MathUtil.distance2d;
import edu.wpi.first.math.geometry.Translation2d;
plugins {
id "java"
id "maven-publish"
id "edu.wpi.first.GradleRIO" version "2022.4.1"
id "com.diffplug.spotless" version "6.1.0"
}
group = 'io.github.tigerbotics7125'