Code Monkey home page Code Monkey logo

Comments (5)

sciencewhiz avatar sciencewhiz commented on June 23, 2024

I think you repo might be private

from 2024beta.

bakedPotatoLord avatar bakedPotatoLord commented on June 23, 2024

I think you repo might be private

Sorry. Fixed now.

from 2024beta.

Starlight220 avatar Starlight220 commented on June 23, 2024

Are any commands running? It doesn't seem so from the epoch prints, which is quite suspicious.

SwerveModule.periodic is taking significantly a lot of time. I'm not sure it's enough to cause loop overruns, but it's clearly not helping. Can you profile it with the Tracer class? I suspect it's the CAN calls.

from 2024beta.

sciencewhiz avatar sciencewhiz commented on June 23, 2024

Why are you setting PID gains every loop in SwerveModule.periodic? They don't appear to ever change.

from 2024beta.

bakedPotatoLord avatar bakedPotatoLord commented on June 23, 2024

Why are you setting PID gains every loop in SwerveModule.periodic? They don't appear to ever change.

I was using it for tuning. I now that I've optimized the constants for those feedback loops, I commented it out in this commit, and it's no longer consistently overrunning the loop (@Starlight220 was right). However, the code still overruns the CommandScheduler loop at startup, possibly from setting the gains of the CAN SparkMaxes, or setting up shuffleboard. That's tolerable for me, but I'd be interested if there's a way around that (such as setting them faster, or maybe doing it before the CommandScheduler
starts up).

Regardless, we still haven't figured out why it was printing the overrun message too many times. I don't remember previous versions having that behavior.

from 2024beta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.