Airvantage GPS position


#1

It seems to be a bug in the airvantage application. To be able to use the map functionality in the AVMS portal the longitude and latitude must be supplied in the format xx.xxxxxx. From AVMS I see that airvantage app provide longitude and latitude in format x.xxxxxxxE7.

I did a quick fix for apps/airvantage/le_tree_hdlr/extvars.c. For the longitude I did the change below and it seems to be the correct format so the location functionality in AVMS is working.

//varPtr->value.d = longitude; char slongitude[8]; double table[8]={10, 1, 0.1, 0.01, 0.001, 0.0001, 0.00001, 0.000001}; double dlongitude = 0; int i; sprintf(slongitude,"%d",longitude); for(i = 0; i < 8; i++) { dlongitude = dlongitude + (slongitude[i] -'0')*table[i]; } varPtr->value.d = dlongitude;


#2

Thanks!