1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

atrf-path: added basic graphical output

- gui.h, gui.c: plot sweep results with SDL_gfx
- Makefile: added target-specific variables for SDL and SDL_gfx
- atrf-path.c (main): invoke the GUI if the number of sweeps is zero
This commit is contained in:
Werner Almesberger
2011-04-12 22:52:39 -03:00
parent 2967f99966
commit 0a409103eb
4 changed files with 156 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
#include "cwtest.h"
#include "atrf.h"
#include "gui.h"
#include "sweep.h"
@@ -211,7 +212,10 @@ int main(int argc, char **argv)
return 1;
sweep.power = 15-power;
do_sweeps(&sweep, sweeps);
if (sweeps) /* @@@ hack */
do_sweeps(&sweep, sweeps);
else
gui(&sweep);
atrf_reg_write(sweep.tx, REG_TRX_STATE, TRX_CMD_TRX_OFF);
atrf_reg_write(sweep.rx, REG_TRX_STATE, TRX_CMD_TRX_OFF);