feat: add gaz pulses simulation according to grdf opendata
This commit is contained in:
parent
61b0b740d2
commit
7645b80ca4
4 changed files with 75 additions and 1 deletions
10
codec/simugaz.js
Normal file
10
codec/simugaz.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function decodeUplink(input) {
|
||||
const b = input.bytes;
|
||||
const pulses = (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3];
|
||||
return {
|
||||
data: {
|
||||
pulse_count: pulses,
|
||||
index_m3: (pulses * 0.010).toFixed(3)
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue