bug fix in map_vis
This commit is contained in:
parent
593a3ec5a0
commit
a9b3081782
|
@ -23,13 +23,11 @@ gboolean update_images(gpointer* pars){
|
||||||
}
|
}
|
||||||
if (curr_measurement==0)
|
if (curr_measurement==0)
|
||||||
{
|
{
|
||||||
int n = df->num_pmu;
|
|
||||||
if (n==0) return TRUE;
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int freq;
|
float freq;
|
||||||
while (i < n){
|
while (df!=NULL){
|
||||||
freq = to_intconvertor(df->dpmu[i]->freq)-200;
|
freq = to_intconvertor(df->dpmu[i]->freq)*0.001+50;
|
||||||
live_chart_serie_add(serie, freq);
|
live_chart_serie_add(serie, freq*1e-1);
|
||||||
loops++;
|
loops++;
|
||||||
printf("loops: %d\n", loops);
|
printf("loops: %d\n", loops);
|
||||||
id = to_intconvertor(TSB[0].idlist[i].idcode);
|
id = to_intconvertor(TSB[0].idlist[i].idcode);
|
||||||
|
@ -60,14 +58,14 @@ gboolean update_images(gpointer* pars){
|
||||||
}else{
|
}else{
|
||||||
parameters->g_last_image = osm_gps_map_image_add(parameters->util_map,lat, lon, parameters->g_red_image);
|
parameters->g_last_image = osm_gps_map_image_add(parameters->util_map,lat, lon, parameters->g_red_image);
|
||||||
}
|
}
|
||||||
if(parameters->g_last_image != 0){
|
// if(parameters->g_last_image != 0){
|
||||||
// osm_gps_map_image_remove(parameters->util_map, parameters->g_last_image);
|
// // osm_gps_map_image_remove(parameters->util_map, parameters->g_last_image);
|
||||||
}
|
// }
|
||||||
if (green){
|
// if (green){
|
||||||
parameters->g_last_image = osm_gps_map_image_add(parameters->util_map,15.518597, 74.925584, parameters->g_green_image);
|
// parameters->g_last_image = osm_gps_map_image_add(parameters->util_map,15.518597, 74.925584, parameters->g_green_image);
|
||||||
}else{
|
// }else{
|
||||||
parameters->g_last_image = osm_gps_map_image_add(parameters->util_map,15.518597, 74.925584, parameters->g_red_image);
|
// parameters->g_last_image = osm_gps_map_image_add(parameters->util_map,15.518597, 74.925584, parameters->g_red_image);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
df = df->dnext;
|
df = df->dnext;
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Reference in New Issue