Closed KenwoodFox closed 2 years ago
This appears to be a bug in CppHeaderParser, and applies to all of the CTRE configuration structs. I believe it's because they use {}
style initialization. We'll have to manually patch it in.
Thank you so much! :heart:
Problem description
It looks like the
CANdleConfiguration()
class only has methods from the parent class (https://store.ctr-electronics.com/content/api/java/html/classcom_1_1ctre_1_1phoenix_1_1_custom_param_configuration.html#a4d20c307bca4e9861b9e2a828b360a59) i think, and none of the custom values for anything else? its possible im just using the library wrong.Heres the api for the CANdleConfiguration() https://store.ctr-electronics.com/content/api/java/html/classcom_1_1ctre_1_1phoenix_1_1led_1_1_c_a_ndle_configuration.html
Heres my example code that does not work: https://github.com/FRC-1721/pre2022season/blob/7d918611b625befc98f916542a78c354b9a31599/rio/subsystems/lighting.py#L27-L30
When uncommented heres the full error:
If you
print(CANdleConfig.toString("Prepend"))
then you see this:Operating System
Linux
Installed Python Packages
Reproducible example code