mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Math: AP_GeodesicGrid: use uint8_t for _neighbor_umbrellas
All integers there are limited to the range [0,20), so uint8_t is enough.
This commit is contained in:
parent
54889e4175
commit
43d9e00ab7
@ -202,18 +202,18 @@ private:
|
||||
* The umbrella's components. The value of #components[i] is the
|
||||
* icosahedron triangle index of the i-th component.
|
||||
*/
|
||||
int components[5];
|
||||
uint8_t components[5];
|
||||
/**
|
||||
* The fields with name in the format vi_cj are interpreted as the
|
||||
* following: vi_cj is the index of the vector, in the icosahedron
|
||||
* triangle pointed by #components[j], that matches the umbrella's i-th
|
||||
* vertex.
|
||||
*/
|
||||
int v0_c0;
|
||||
int v1_c1;
|
||||
int v2_c1;
|
||||
int v4_c4;
|
||||
int v0_c4;
|
||||
uint8_t v0_c0;
|
||||
uint8_t v1_c1;
|
||||
uint8_t v2_c1;
|
||||
uint8_t v4_c4;
|
||||
uint8_t v0_c4;
|
||||
} _neighbor_umbrellas[6];
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user