acmerobotics / road-runner-ftc

BSD 3-Clause Clear License
0 stars 11 forks source link

No data displayed in the FTC Dashboard #1

Closed cybertractorchallenge closed 10 months ago

cybertractorchallenge commented 10 months ago

This function in the JS is unable to actually show the data being generated by the lateral ramp regression tests. The data gets put in the JSON file but there is an error "Reduce of empty array with no initial value" in the JS console so I suspect the issue is actually in a function called by this one. Our JSON file actually does have data in it and we can provide that if needed if you cannot reproduce the issue.

Let me know if you need more logs, our students have been banging their heads against the wall on this one.

https://github.com/acmerobotics/road-runner-ftc/blob/389a7c9d50915a6637a5d395e74a4948b4a37ed0/web/tuning/common.ts#L452

image
Aask42 commented 10 months ago

Totally opened this under the wrong account, commenting so this account gets the notice.

rbrott commented 10 months ago

The JSON file would be useful.

FTC19415 commented 10 months ago

lateral-ramp-1700008136492.json

rbrott commented 10 months ago

LateralRampLogger is only intended for teams using dead wheels. Are you sure you're using dead wheels?

FTC19415 commented 10 months ago

Yes. We are using 3 odometry pods. Two parallel and one perpendicular.

rbrott commented 10 months ago

Did you set the localizer (localizer = new ...) in the drive class? While I see data in the tuning file, there is no data from a perpendicular encoder.

FTC19415 commented 10 months ago

Ohhh, it's in the drive class, ok. I thought it was in the tuning opmodes because right above it that's what it was talking about. I'll check that out and let you know if any other questions come up. Thank you so much!

Aask42 commented 10 months ago

I can't even get localizer to instantiate, it looks like the issue may be in line 425 of Tuning.kt where the laterSum is directly looking to talk to the leftEncs and rightEncs, but in the TuningOpeModes.java, if we are doing the ThreeDeadWheelLocalizer, it never sets those variables, instead setting the perpEncs. I think this is part of the issue. Please advise.

Aask42 commented 10 months ago

Nevermind, working with students to understand platform better. Will close issue and let you know if we have more issues.

cybertractorchallenge commented 10 months ago

Issue was confusion from our student on what tests are for which configurations.