For example,
for (size_t i=0; i<nSize/2; i++) {
data_[i]<<=4;
}
Hard Earned Knowledge
For example,
for (size_t i=0; i<nSize/2; i++) {
data_[i]<<=4;
}
Setting terminal titles was a super useful feature in Ubuntu before 16.04. Here’s how to do it in modern versions:
Add the following to .bashrc
set-title(){ ORIG=$PS1 TITLE="\e]2;$@\a" PS1=${ORIG}${TITLE} }
Use the command:
set-title title_of_window
This also works on Pi 3.
sudo raspi-config, disable serial console login, enable hardware serial port
sudo apt install pps-tools gpsd gpsd-clients python-gps chrony
edit /etc/modules, add:
pps-gpio
edit /boot/firmware/config.txt (or /boot/config.txt), add:
dtoverlay=pps-gpio,gpiopin=18
edit /etc/default/gpsd, set device to “/dev/ttyS0”, options to “-n -b”
sudo systemctl enable gpsd
edit /etc/chrony/chrony.conf, comment out all servers and pools, add:
refclock SHM 0 poll 0 refid GPS precision 1e-1 offset 0.055 refclock PPS /dev/pps0 lock GPS poll 0 refid PPS precision 1e-9
sudo systemctl restart chrony
Monitor using chronyc sources, or chronyc sourcestats