Rover codes
-
After burning the Raspbian Strech Lite on memory card and
touch SSH
in boot folder. -
On any Linux machine access the burned memory card and
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
add entry at bottom... more here
network={
ssid="wifi_name"
psk="wifi_password"
}
-
After login run increase the memory
sudo raspi-conig
-
After this we begin installing deps
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
git clone https://github.com/teamrudra/core.git
cd core
./install.sh
Change the variables in gpsd
file by sudo nano /etc/default/gpsd
to following:-
START_DAEMON="true"
GPSD_OPTIONS="-n"
DEVICES="/dev/ttyUSB0"
# USB Hot plugging (dangerous sometimes)
USBAUTO="false"
GPSD_SOCKET="/var/run/gpsd.sock"
Then run the sudo systemctl enable gpsd
to start at every boot or sudo systemctl start gpsd
to start in right away and not at every boot.
gps2udp -j -u 192.168.1.29:23907 -b
Open the dhcpcd.conf by sudo nano /etc/dhcpcd.conf
and add following to end of file :-
interface eth0
static ip_address=192.168.1.33/24
static routers=192.168.1.20
static domain_name_servers=192.168.1.20
interface wlan0
static ip_address=192.168.1.23/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
(optional) for wlan0 entry. more
sudo reboot
to changes take effect.
IP Address: 192.168.1.29
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.20
Ubiquity is router, gateway and DNS where IP is 192.168.1.20
For Windows, Leave DNS settings blank.
Component | IP | Port(Listening) |
---|---|---|
Ground Station | 192.168.1.29 | 23907 |
Rover | 192.168.1.33 | 3301 |
Ubiquity(Router) | 192.168.1.20 | * |