-
Notifications
You must be signed in to change notification settings - Fork 2
/
binrfile.nvs.txt
66 lines (34 loc) · 944 Bytes
/
binrfile.nvs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#Initialising the GPIOs on the expansion board
sudo nvsctl -v init
sleep .2
# switch NV08C to BINR mode
sudo nvsmode -v binr
sleep .2
# reboot without erasing saved parameters
sudo binrcmd -v WARMSTART
sleep .2
# set navgation rate in Hz (1,2,5,10 Hz), Standard = 2 Hz
sudo binrcmd -v NAVRATE 5
sleep .2
# differential correction SBAS w/ RTCA troposphere model
sudo binrcmd -v DIFFCOR 2 1
sleep 1
# raw data output in intervals of dezi-secs (100ms)
# 1 -> 10Hz, 2 -> 5Hz, 5 -> 2Hz, 10 -> 1Hz (inverse
# setting but must be the same or greater than NAVRATE !!) Standard = 5
sudo binrcmd -v RAWDATA 2
sleep .2
# bit information transmitted by satellites
sudo binrcmd -v BITINF 1
sleep .2
# optional cmds i tried
#sudo binrcmd -v SATDOP 2
#sleep .2
#sudo binrcmd -v SELGNSS 1
#sleep .2
#sudo binrcmd -v BINROPMODE 1
#sleep .2
# reboot without erasing saved parameters
sudo binrcmd -v WARMSTART
sleep .2