G91 ; Relative positioning
G1 E-2 F2700 ; Retract a bit
G1 E-2 Z0.2 F2400 ; Retract and raise Z
G1 X5 Y5 F3000 ; Wipe out
G1 Z10 ; Raise Z more
G90 ; Absolute positioning
G1 X0 Y0 ; Present print
M104 S0 ; Turn-off hotend
This is a list of how I got FlightGear to (somehow) work on cardboard VR glasses.
Done on windows 10 and Android 9 phone.
It should work if PC and phone are on the same wifi, but update rate is most likely better with USB connection, USB network sharing on the phone, and phone (and PC) set to airplane mode...
Note that the software I used are ones I found to work, I have no other connection to them. Also, you do everything on your own risk!
I wanted this capability for various reasons. It's not necessarily stable, because uap0 has to use the same channel as wlan0, and if you're traveling/mobile, wifi channels aren't necessarily predictable.
This is not a guide. This is just so I remember how to get back where I started, in case I wipe this thing. =)
Extremely helpful guides that got me here:
- http://imti.co/post/145442415333/raspberry-pi-3-wifi-station-ap
- https://serverfault.com/questions/124774/have-a-service-start-on-startup-with-ubuntu
- https://raspberrypi.stackexchange.com/questions/63841/rpi-zero-w-as-both-wifi-client-and-access-point
- https://gist.github.com/ysr23/c4a9d7185ed5c6d7ccfa31deead44070
| # /etc/dhcp/dhcpd.conf | |
| # Very basic dhcp daemon configuration for the USB interface | |
| default-lease-time 600; | |
| max-lease-time 7200; | |
| # The ddns-updates-style parameter controls whether or not the server will | |
| # attempt to do a DNS update when a lease is confirmed. We default to the | |
| # behavior of the version 2 packages ('none', since DHCP v2 didn't | |
| # have support for DDNS.) |