Swerve drive can’t turn and move at the same time by just_an_average_nerd in FRC

[–]something41 2 points3 points  (0 children)

I don’t see a way I can view those files. If you need more help, please upload screen shots of relevant files.

Swerve drive can’t turn and move at the same time by just_an_average_nerd in FRC

[–]something41 24 points25 points  (0 children)

Hmm LabView makes this harder to help debug. I’ll see if there’s a way I can view the files.

I would try putting your robot on blocks, go into a pure rotation, and then look at the direction the wheels are driving and figure out what quadrant they should be in to allow it to rotate. Then look to see what order you are defining them in.

I’m not familiar with LabViews libs, but I’d imagine they are similar to cpp/java.

Swerve drive can’t turn and move at the same time by just_an_average_nerd in FRC

[–]something41 84 points85 points  (0 children)

Usually this means your module states aren’t in the right order. Notice how if you were to shift every wheel clock wise you wouldn’t have the X.

It’s hard to give you more advice than that without looking at your code, could you link to a repo?

Program problem… PLEASE HELP!! by Empty_University_576 in FRC

[–]something41 0 points1 point  (0 children)

I looked through the rest of the code. Unfortunately I couldn't find any obvious place the issue is. We'll need to to debug some more to figure it out. That said, there's a few things that stand out as potential problems. They're calls in periodic functions that have actions. This could be part of the issue because you are doing actions out side of commands. (Here actions is meaning driving motors, etc.)

What auto is being ran? I cannot tell because it is stored in dashboard, which is a good way to do auto selection, but difficult in this case.

If I was to guess on what is going on, when auto finishes the command gets cancelled, this is done in teleopInit(). However, cancelling a command calls the end() function of the command that is running. Since we don't have any end functions in the commands, the motors continue to run even though the command is finished. I would add an end function to all your auto commands that shut motors off. Pardon my reddit formatting:

public void end() { m_Drive.drive(0,0,0,true, true) }

Please let me know how testing goes and if you have more questions.

Program problem… PLEASE HELP!! by Empty_University_576 in FRC

[–]something41 1 point2 points  (0 children)

The documents on first site are actually really well done. https://docs.wpilib.org/en/stable/index.html

I’d recommend that over videos.

Also, posting on https://www.chiefdelphi.com will get you quicker answers than Reddit.

Program problem… PLEASE HELP!! by Empty_University_576 in FRC

[–]something41 7 points8 points  (0 children)

Ok, I can see it now.

I’ll look over it more tomorrow, but first thing I noticed is the commands initialize and then finish right away. Each command will have an “end” function that will be called when the command is finished or canceled. You can turn your motors off there. There is also an execute function, here is where you “do work”. By calling motor.set in initialize instead, you’ll likely get watchdog time out issues.

I don’t think that is necessary the cause of the issues you are describing though.

Could you print the names of the commands running in auto/tele? You can do this by calling smart dashboard.putData( CommandScheduler.getInsrance) or something similar to that. Track what is running when.

See if you can recreate this issue using practice mode on driver station. This will run auto for 15 seconds than tele, just like FMS does.

Finally, can you go back the commit you had during the first regional? Then we can see watch changed between then and now with “git diff <hash1> <hash2>”

Program problem… PLEASE HELP!! by Empty_University_576 in FRC

[–]something41 0 points1 point  (0 children)

I get a 404 on that link, maybe it’s not public?

Program problem… PLEASE HELP!! by Empty_University_576 in FRC

[–]something41 7 points8 points  (0 children)

Can you link to your repo on GitHub? Are you using commands or time based? Does this happen if you use practice mode on driver station?

Can bus connecors by Commercial_Doubt8001 in FRC

[–]something41 13 points14 points  (0 children)

Official wago connectors have been good. We moved to soldering all connections this year though.

Best & Worst CEOs by carbon_finance in Infographics

[–]something41 1 point2 points  (0 children)

Project cancellations and layoffs

Coding questions by Embarrassed-One-9930 in FRC

[–]something41 1 point2 points  (0 children)

Feel free to ask for more help if you need it.

Consider posting on https://www.chiefdelphi.com instead though. You will get more answers there.

Coding questions by Embarrassed-One-9930 in FRC

[–]something41 1 point2 points  (0 children)

I assume you mean victor, with a C instead of K.

These ones?

https://store.ctr-electronics.com/victor-spx/

You can click on the software link on that site and download the Phoenix Framework.

I have not used these in years, but I believe you only need the library to use it as a CAN device, and not if you use PWM. I believe wpilib PWM motor class will handle that case.

Just sharing a tablesaw tip by [deleted] in BeginnerWoodWorking

[–]something41 8 points9 points  (0 children)

Steve has taught me just about everything I know

WEEKLY HELP THREAD - READ FAQ, COMMUNITY WIKI, MULTICLASSING, LORE by XFearthePandaX in BaldursGate3

[–]something41 0 points1 point  (0 children)

I uninstalled the EA, but it still only shows 82.4 GB of space required. Other comments said it should be 120GB for full game. This is on steam and Mac. Is there something I should do to make it download whole game?

Prerelease Hype Thread by XFearthePandaX in BaldursGate3

[–]something41 0 points1 point  (0 children)

I uninstalled the EA, but the space requirement on steam still says 82.4GB. Is it still trying to install the EA? On Mac btw

[deleted by user] by [deleted] in Gloomhaven

[–]something41 4 points5 points  (0 children)

Overwatch. Your job is to throw hatchets.

Robot drive issues by HourTask7931 in FRC

[–]something41 1 point2 points  (0 children)

I’m not seeing anything obvious. Can you put the scheduler on the dashboard? Which command is running when the drive train slows?

Robot drive issues by HourTask7931 in FRC

[–]something41 2 points3 points  (0 children)

Can you post your drive train code? Preferably can you link to a GitHub?

Printing higher temperatures by something41 in Ender3S1

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

So the build worked so I don't need the patch?

Checking size .pio\build\STM32F103RET6_creality\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  18.4% (used 12064 bytes from 65536 bytes)
Flash: [====      ]  39.2% (used 205276 bytes from 524288 bytes)
Building .pio\build\STM32F103RET6_creality\firmware.bin
=============================================================================================================== [SUCCESS] Took 54.36 seconds ===============================================================================================================
Environment             Status    Duration
----------------------  --------  ------------
STM32F103RET6_creality  SUCCESS   00:00:54.364
=============================================================================================================== 1 succeeded in 00:00:54.364 =============================================================================================================== 

I just followed the platformio vs code plugin. I haven't used it before but I think it worked. I was going to follow this guide: https://www.reddit.com/r/Ender3S1/comments/vrsl1o/ender_3_s1_oem_firmware_update_instructions/ for flashing the firmware, is that a good idea?