acmerobotics / road-runner-quickstart

FTC quickstart for https://github.com/acmerobotics/road-runner
BSD 3-Clause Clear License
168 stars 855 forks source link

Failed Requirement during ManualFeedbackTuner or any Opmode created #372

Open ftcaarya opened 4 months ago

ftcaarya commented 4 months ago

RR FTC Version

0.1.13

Observed Behavior

After all tuning has been done for drive encoders, I was running the ManualFeedbackTuner opmode that was given with no edits to the file. When I ran it though I get a error saying "Failed Requirement" And the team code line says a line, I delete that line and run again it shows a different line with the same error. All these lines are in a trajectory builder btw.

Tuning Files

No response

Robot Logs

No response

ftcaarya commented 4 months ago

@rbrott

rbrott commented 4 months ago

Can you please post the full stacktrace?

ftcaarya commented 3 months ago

IMG_2887 IMG_2886

rbrott commented 3 months ago

Can you attach a robot log?

ftcaarya commented 3 months ago

Can you attach a robot log?

What does that mean? Like the telemetry or the robots behavior or logcat?

rbrott commented 3 months ago

Go to http://192.168.43.1:8080/logs and download one of the files.

ftcaarya commented 2 months ago

2024_03_01__19_32_30_036__ManualFeedbackTuner.log

ftcaarya commented 2 months ago

Go to http://192.168.43.1:8080/logs and download one of the files.

@rbrott I linked it

rbrott commented 2 months ago

So your params are

MECANUM_PARAMS
  axialGain: 0.0
  axialVelGain: 0.0
  headingGain: 0.0
  headingVelGain: 0.0
  inPerTick: 0.02258823529411765
  kA: 0.0005
  kS: 1.466179965890956
  kV: 0.004050112092712909
  lateralGain: 0.0
  lateralInPerTick: 0.0
  lateralVelGain: 0.0
  logoFacingDirection: BACKWARD
  maxAngAccel: 3.141592653589793
  maxAngVel: 3.141592653589793
  maxProfileAccel: 50.0
  maxWheelVel: 50.0
  minProfileAccel: -30.0
  trackWidthTicks: 1330.9955862311713
  usbFacingDirection: UP

lateralInPerTick should not be 0.0. Follow the tuning instructions to calculate its value.

ftcaarya commented 2 months ago

So your params are

MECANUM_PARAMS
  axialGain: 0.0
  axialVelGain: 0.0
  headingGain: 0.0
  headingVelGain: 0.0
  inPerTick: 0.02258823529411765
  kA: 0.0005
  kS: 1.466179965890956
  kV: 0.004050112092712909
  lateralGain: 0.0
  lateralInPerTick: 0.0
  lateralVelGain: 0.0
  logoFacingDirection: BACKWARD
  maxAngAccel: 3.141592653589793
  maxAngVel: 3.141592653589793
  maxProfileAccel: 50.0
  maxWheelVel: 50.0
  minProfileAccel: -30.0
  trackWidthTicks: 1330.9955862311713
  usbFacingDirection: UP

lateralInPerTick should not be 0.0. Follow the tuning instructions to calculate its value.

I had the letralInPerTick set but I was doing integer division instead of double division it was set as 24/1025 where it should be 24.0/1025 sorry for the trouble and thanks

EthanHu29 commented 1 month ago

@rbrott , Any tool we can make the log files readable for human being? Or we have to write one ourselvles? Any suggestion? Thanks!