custom computed attribute report

You k 4 years ago

Hello,

Please when we create a custom computed attribute it is possible to add it to route report which is supposed to show all the computed attribute ?
when i tried to add that new computed attribute to report, i didn't find it in the list, there is only existing attributes

Thanks

Anton Tananaev 4 years ago

Do you mean you have a custom name for the attribute? It won't show. You have to add it in the code.

You k 4 years ago

Hello,

Thanks for your quick answer !

Yes indeed, i have added a new computed attribute name, value show in state but not in the route report, can't find it there.
Please where can i add this new attribute in the source code ? which class should i modify exactly ?

Thanks

Anton Tananaev 4 years ago

You can search the code for existing attributes to see where to add it.

You k 4 years ago

could you clarify more please ? where can i find code for computed attributes ? i mean in which directory

Anton Tananaev 4 years ago

What I suggested is just to search the codebase. I'm sure you know how to use search if you are planning on writing code.

You k 4 years ago

Hello,

It's in position.java for anyone who needs it

You k 4 years ago

i noticed that there are some computed attributes that are not displayed by default in the attribut list (UI) like :

 public static final String ALARM_ACCELERATION = "hardAcceleration";
 public static final String ALARM_BRAKING = "hardBraking";
 public static final String ALARM_CORNERING = "hardCornering";

could you please explain the reason why ?

Anton Tananaev 4 years ago

Those are not attributes.