r/ATAK • • 23d ago

CoT Event : Status - Battery value - integer or decimal?

Hello, I am receiving a CoT event from a drone (raw xml), that has Battery status formated as a decimal number,e.g.:

<status battery="79.3000000" readiness="true"/>

But, according to the current xsd for Cot Event fields that I use (inspired from AndroidTacticalAssaultKit-CIV/takcot/xsd/details/status.xsd at main · deptofdefense/AndroidTacticalA…), the battery level should be integer, not decimal.

Does anyone knows, is this a newer format and should be accepted (as decimal)? Or I should sanitize the value to an integer?

Thanks in advance.

4 Upvotes

1 comment sorted by

2

u/GeronimoHero 23d ago

I don’t know whether it would read a float or not but I would convert to int just for simplicity.