Commit a519922c authored by Navid Nikaein's avatar Navid Nikaein

change the nu,ber of tic marks in OTG xforms

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5670 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent c52f868a
...@@ -78,26 +78,31 @@ FD_otg *create_form_otg(void) ...@@ -78,26 +78,31 @@ FD_otg *create_form_otg(void)
//For more details about object parameters, refer to: http://xforms-toolkit.org/doc/xforms_25.html //For more details about object parameters, refer to: http://xforms-toolkit.org/doc/xforms_25.html
void show_otg_form() void show_otg_form() {
{ int eNB_id;
int eNB_id; char title[255];
char title[255]; char *tArgv[] = { "OTG", "OTG" };
char *tArgv[] = { "OTG", "OTG" }; int tArgc = 2;
int tArgc = 2;
int major_owd = 6;
fl_initialize(&tArgc,tArgv,"OTG",0,0); int minor_owd = 3;
int major_thr = 5;
int minor_thr = 2;
fl_initialize(&tArgc,tArgv,"OTG",0,0);
for (eNB_id = 0; eNB_id < NB_eNB_INST; eNB_id++) { //NB_eNB_INST for (eNB_id = 0; eNB_id < NB_eNB_INST; eNB_id++) { //NB_eNB_INST
form_dl= create_form_otg (); form_dl= create_form_otg ();
sprintf (title, "LTE eNB->UE (DL)"); sprintf (title, "LTE eNB->UE (DL)");
fl_show_form (form_dl->otg, FL_PLACE_HOTSPOT, FL_FULLBORDER, title); fl_show_form (form_dl->otg, FL_PLACE_HOTSPOT, FL_FULLBORDER, title);
fl_set_form_position(form_dl->otg, 200, 200); fl_set_form_position(form_dl->otg, 200, 200);
fl_set_xyplot_ytics(form_dl->owd,major_owd, minor_owd);
if (g_otg->owd_radio_access==1) if (g_otg->owd_radio_access==1)
fl_set_xyplot_ybounds(form_dl->owd,0,200); fl_set_xyplot_ybounds(form_dl->owd,0,200);
else else
fl_set_xyplot_ybounds(form_dl->owd,0,400); fl_set_xyplot_ybounds(form_dl->owd,0,400);
fl_set_xyplot_ytics(form_dl->throughput,major_thr, minor_thr);
fl_set_xyplot_ybounds(form_dl->throughput,0,200); fl_set_xyplot_ybounds(form_dl->throughput,0,1000);
...@@ -105,14 +110,16 @@ fl_initialize(&tArgc,tArgv,"OTG",0,0); ...@@ -105,14 +110,16 @@ fl_initialize(&tArgc,tArgv,"OTG",0,0);
sprintf (title, "LTE UE->eNB (UL)"); sprintf (title, "LTE UE->eNB (UL)");
fl_show_form (form_ul->otg, FL_PLACE_HOTSPOT, FL_FULLBORDER, title); fl_show_form (form_ul->otg, FL_PLACE_HOTSPOT, FL_FULLBORDER, title);
fl_set_form_position(form_ul->otg, 850, 200); fl_set_form_position(form_ul->otg, 850, 200);
fl_set_xyplot_ytics(form_ul->owd,major_owd, minor_owd);
if (g_otg->owd_radio_access==1) if (g_otg->owd_radio_access==1)
fl_set_xyplot_ybounds(form_ul->owd,0,200); fl_set_xyplot_ybounds(form_ul->owd,0,200);
else else
fl_set_xyplot_ybounds(form_ul->owd,0,400); fl_set_xyplot_ybounds(form_ul->owd,0,400);
//fl_set_positioner_ystep (form_ul->throughput, 100);
//fl_set_xyplot_xgrid (form_ul->throughput, FL_GRID_MAJOR);
fl_set_xyplot_ybounds(form_ul->throughput,0,200); fl_set_xyplot_ytics(form_ul->throughput,major_thr, minor_thr);
fl_set_xyplot_ybounds(form_ul->throughput,0,1000);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment