-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major update from UPV #13
base: development
Are you sure you want to change the base?
Conversation
Added new dinamic graph for BLER and SNR. Added control pannel to modify the receiver parameters. Added brief description to options and values.
@alessandro-lucco: Fyi, this PR includes the changes presented by @jsroldan in the last call. If you find the time, it would be nice if you can run some tests on your side as well. We are currently testing against sample recordings: https://5g-mag.github.io/Getting-Started/pages/lte-based-5g-broadcast/additional/sample-files.html |
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "rt-wui", | |||
"version": "0.0.11", | |||
"version": "0.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increase version number to 0.2.0
in package.json and run npm install
again. This should update the package-lock.json
as well.
function plot_graph(canvas_id, status_rx, snr, snr_avg, bler) { | ||
const canvas = document.getElementById(canvas_id); | ||
const ctx = canvas.getContext("2d"); | ||
//canvas.width = canvas.parentElement.clientWidth; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented lines
ctx.lineWidth = 1; | ||
ctx.strokeStyle = "#00CC00"; | ||
ctx.fillStyle = "#00CC00"; | ||
// ctx.clearRect( 0, 0, canvas.width, canvas.height ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented lines
} | ||
ctx.strokeStyle = "#999999"; | ||
ctx.fillStyle = "#999999"; | ||
//ctx.moveTo(0, y); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented lines
ctx.fillRect(canvas.width- right_margin, | ||
y - 1, // Instantaneous snr | ||
2,2); | ||
//ctx.stroke(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented lines
|
||
if (!window.started && d["state"].localeCompare("Not running") ) { | ||
window.started = 1; | ||
//clear_all(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented lines
}); | ||
|
||
load_ce_values("sdr-carriers"); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty lines
exports.status = async(function*(req, res) { | ||
proxy_call(req, res, "/modem-api/status"); | ||
}); | ||
exports.ce_values = async(function*(req, res) { | ||
proxy_call(req, res, "/modem-api/ce_values"); | ||
}); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty lines
router.get('/api/modem/status', modem_api.status); | ||
router.get('/api/modem/ce_values', modem_api.ce_values); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty lines
@@ -12,7 +12,8 @@ | |||
<body class="" data-rp-api="<%= global.rp_api %>"> | |||
<div class="wrapper"> | |||
<%- include('_header.ejs') %> | |||
<div class="container"> | |||
<!--div class="container"><!--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented lines
Added new dinamic graph for BLER and SNR.
Added control pannel to modify the receiver parameters. Added brief description to options and values.