Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
39a3802
File win32junk.h: Add struct ustname, uname().
icekarma Dec 14, 2019
b3878ce
File CMakeLists.txt: Update Qt path.
icekarma Dec 14, 2019
da2b17b
Script rebuild: Whitespace; small fixes recommended by shellcheck.
icekarma Dec 14, 2019
efbe81d
Class UpgradeManager: Add support for multiple architectures, release…
icekarma Dec 15, 2019
bcde0b6
Release train changes: Start adjusting Debian packaging files.
icekarma Dec 16, 2019
f59be91
Temporarily commit WIP release train changes.
icekarma Dec 16, 2019
26d7c9c
Fix value of PrinterDefaultHighSpeed after raising it the other day d…
icekarma Dec 16, 2019
6a32ecd
CMakeLists.txt: Update Qt path again.
icekarma Dec 18, 2019
976d379
Temporary commit
icekarma Dec 27, 2019
a0ca854
Add DLP4710 set-projector-power.
icekarma Jan 9, 2020
b74f418
Fix value of PrinterDefaultHighSpeed after raising it the other day d…
icekarma Dec 16, 2019
e6a51f0
CMakeLists.txt: Update Qt path again.
icekarma Dec 18, 2019
fb10d66
Add DLP4710 set-projector-power.
icekarma Jan 9, 2020
1da56f6
DLP4710: Adjust stuff for new projector.
icekarma Jan 10, 2020
cf39f11
Version 1.0.11.0.
icekarma Jan 10, 2020
b8025bf
Update dimensions of projector display.
icekarma Jan 10, 2020
04bb5a3
DLP4710: Small fixes.
icekarma Jan 10, 2020
c9a61e6
Fix main window position.
icekarma Jan 11, 2020
4bc21da
Adjust touchscreen transformation matrix.
icekarma Jan 11, 2020
1a2f7b0
DLP4710: Tweak udev rules.
icekarma Jan 11, 2020
e993100
Rotate keys.
icekarma Jan 11, 2020
dfe9f72
Rotate keys.
icekarma Jan 11, 2020
805901a
Merge branch 'dev-1.0.11' of github.com:VolumetricBio/LightField into…
icekarma Jan 12, 2020
8f945ef
Update .gitignore .
icekarma Jan 12, 2020
03ed3bf
Debian packaging: Do first-time DLP4710 projector configuration from …
icekarma Jan 12, 2020
83579e5
version.h shouldn't be under version control, because it's generated …
icekarma Jan 14, 2020
c4cf52d
More work on multiple release trains.
icekarma Jan 14, 2020
f56c1f3
Rotate keys.
icekarma Jan 11, 2020
6a19ebc
Rotate keys.
icekarma Jan 11, 2020
3509b78
make-upgrade-kit.sh: Rearrange variables; eliminate duplicate initial…
icekarma Jan 14, 2020
28b03f0
make-deb-package.sh: Update apply-*-substitution functions.
icekarma Jan 14, 2020
c18c8b0
Multiple release trains: This ought to be it!
icekarma Jan 17, 2020
17500cb
Multiple release trains: Add DLP4710 support.
icekarma Jan 17, 2020
57e2d5a
Update .gitignore.
icekarma Jan 17, 2020
e17a3ff
install-lightfield.sh: don't fail if fails
icekarma Jan 21, 2020
ea56398
Advanced tab: Re-enable temperature setting.
icekarma Jan 21, 2020
f9203b3
stdio-shepherd: Open the right device.
icekarma Jan 22, 2020
6af9969
stdio-shepherd: Open the right device.
icekarma Jan 22, 2020
2e74829
Merge DLP4710 changes from dev-1.0.10.
icekarma Jan 22, 2020
7e887ab
A few small fixups after the merge.
icekarma Jan 22, 2020
1453814
shared-stuff.sh: Update version number.
icekarma Jan 22, 2020
125776b
Fix permissions on script "reset-lumen-projector-port".
icekarma Jan 22, 2020
c6e4079
Merge branch 'dev-1.0.11' of github.com:VolumetricBio/LightField into…
icekarma Jan 22, 2020
2f50505
install-lightfield.sh, make-deb-package.sh: Install set-projector-pow…
icekarma Jan 22, 2020
f08ec0c
Merge branch 'dev-1.0.11' of github.com:VolumetricBio/LightField into…
icekarma Jan 22, 2020
837b888
install-lightfield.sh, make-deb-package.sh: Make sure the DLP4710 set…
icekarma Jan 22, 2020
f78b95a
DLP4710: Support correct power levels.
icekarma Jan 22, 2020
ec4c484
Add new images for DLP4710, and build-time selection.
icekarma Jan 22, 2020
22a529b
Fix size of DLP4710 white-field.png.
icekarma Jan 22, 2020
2113047
dlp4710-white-field.png: Optimize compression.
icekarma Jan 22, 2020
9ae9cb6
dlp4710-white-field.png: Optimize compression.
icekarma Jan 22, 2020
6c2e477
Add original vector source for {dlpc350,dlp4710}-focus-image.png.
icekarma Jan 22, 2020
dfb8017
Print profiles: Add new classes.
icekarma Jan 24, 2020
9b38c3a
DLP4710: only run `set-projector-power --first-time` in the 'dlp4710'…
icekarma Jan 24, 2020
cb8e3e6
make-deb-package.sh: Fix permissions on DLP4710 set-projector-power e…
icekarma Jan 25, 2020
3c916be
make-upgrade-kit.sh: Fixes to multiple release train support.
icekarma Jan 25, 2020
875301f
Print profiles: Add new class PrintPumpingParameters.
icekarma Jan 26, 2020
0a13ecc
rebuild: Try to generate src/version.h if it's missing.
icekarma Jan 26, 2020
20f4378
Add new class ProfilesTab.
icekarma Jan 28, 2020
e1eb3a6
rebuild: Fix excessive regeneration of src/version.h.
icekarma Jan 28, 2020
884ffdb
Packaging: Various fixes.
icekarma Jan 26, 2020
ee11356
Packaging: Another small fix.
icekarma Jan 28, 2020
494ad33
- added left menu (advanced tab)
sagittarius89 Jan 28, 2020
e1110db
Class PrintPumpingParameters: Set default values, and add new methods…
icekarma Jan 28, 2020
846ce6a
Script "rebuild": Fix misplaced else clause.
icekarma Jan 28, 2020
a04e5c0
Class PrintPumpingParameters: Add power level; rearrange a bit.
icekarma Jan 28, 2020
787b9a0
Script "rebuild": Fix misplaced else clause.
icekarma Jan 28, 2020
77f59a2
Scripts: Change LIGHTFIELD_ROOT to the current directory.
icekarma Jan 28, 2020
a9a0e21
Move some scripts into new folder old-scripts/ .
icekarma Jan 28, 2020
7e3e135
Update .gitignore.
icekarma Jan 28, 2020
bedd7fd
Class PrintProfile, methods {base,body}LayersPumpingParameters: de-co…
icekarma Jan 29, 2020
6dc82a2
Merge pull request #1 from VolumetricBio/feature-print-profiles
PiotrConclusive Jan 29, 2020
0d50730
Merge pull request #2 from conclusiveeng/feature-print-profiles
PiotrConclusive Jan 29, 2020
7552b74
Class PrintJob: Add new member printProfile.
icekarma Jan 29, 2020
d481993
Class ProfilesTab: Add member variable _printProfileManager.
icekarma Jan 29, 2020
6970268
Class Window: Construct a PrintProfilesManager and hand it off to Pro…
icekarma Jan 29, 2020
3336415
Merge branch 'feature-print-profiles' of https://github.com/Volumetri…
sagittarius89 Jan 29, 2020
e0f21c3
- added profiles tab layout
sagittarius89 Jan 30, 2020
2856166
added json example file with configuration and schema. Need to add pr…
sagittarius89 Jan 30, 2020
c04d4a3
- implementation of list operations
sagittarius89 Jan 30, 2020
ddbdcc5
hotfix (unit conversion)
sagittarius89 Jan 31, 2020
ea2935b
added custom virtual keyboard
sagittarius89 Jan 31, 2020
5c73eee
Merge branch 'feature-gui-conclusive' of https://github.com/conclusiv…
Jan 31, 2020
fa743e4
Keyboard color and layout fixes
Jan 31, 2020
af82594
Merge pull request #89 from conclusiveeng/feature-gui-conclusive
icekarma Jan 31, 2020
25aa0da
Small fixes after merge.
icekarma Jan 31, 2020
3b9ae68
Debian packaging: Add new dependencies for virtual keyboard.
icekarma Jan 31, 2020
1cb4907
Rip out references to QtVirtualKeyboard because it doesn't seem to ex…
icekarma Jan 31, 2020
32f15ee
Class ProfilesJsonParser: Replace log() and std::cerr with debug().
icekarma Feb 2, 2020
858b73c
Naming.
icekarma Feb 5, 2020
48ce1c1
new operations: update, rename profile
sagittarius89 Feb 6, 2020
3f6bce1
UPDATE: Keyboard review
Feb 14, 2020
f004ea1
Update print protile tabs:
Feb 21, 2020
ec2e343
Add default profile. Default profile not show in profile list. TODO: …
Feb 24, 2020
c2a2bf6
Add all unstaged files from last commit
Feb 28, 2020
2fee1b6
Deleted paths pointing to home directories
PiotrConclusive Mar 2, 2020
9f9d0c3
Deleted unnecessary line
PiotrConclusive Mar 2, 2020
4ca1b22
deleted unnecessary line
PiotrConclusive Mar 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
.gdbinit
.vs
.vscode
build
calculate-ctm.txt
class-template.txt
cleaned.txt
copy-to-usb-stick.sh
deps-junk-1.txt
deps-junk-2.txt
deps-junk-3.txt
display-args.func
dlp4710/set-projector-power
dlp4710/set-projector-power.o
do-it.sh
fresh-pkg-list.txt
.gdbinit
gpg/gpg-agent.conf
gpg/openpgp-revocs.d
gpg/private-keys-v1.d
gpg/random_seed
images/focus-image.png
images/white-field.png
installer
install-overlap.txt
listcomp.pl
listfilter.pl
model-library
mountmon/build
mountmon/.gdbinit
mountmon/.qmake.stash
mountmon/Makefile
mountmon/build
mountmon/.qmake.stash
newConfigureUbuntuAndInstallLightField.sh
out
packaging
rpi4_packages-overlap.txt
rpi4_packages-to-install.txt
src/version.h
superclean.sh
ubuntu-cosmic-18.10-packages.txt
usb-driver/dlpc350_api.o
usb-driver/dlpc350_usb.o
usb-driver/main.o
usb-driver/set-projector-power
.vs
.vscode
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set (PROJECT_VERSION "${LF_VERSION_MAJOR}.${LF_VERSION_MINOR}.${LF_VERSION_PATCH

if(WIN32)
# Set the Qt5 path
set(Qt5_DIR "F:\\\\Qt\\\\5.13.1\\\\msvc2017_64\\\\lib\\\\cmake\\\\Qt5")
set(Qt5_DIR "F:\\\\Qt\\\\5.14.0\\\\msvc2017_64\\\\lib\\\\cmake\\\\Qt5")
endif(WIN32)

project(lf)
Expand Down Expand Up @@ -50,8 +50,11 @@ src/mesh.cpp
src/pngdisplayer.cpp
src/preparetab.cpp
src/printmanager.cpp
src/printprofile.cpp
src/printprofilemanager.cpp
src/printtab.cpp
src/processrunner.cpp
src/profilestab.cpp
src/shepherd.cpp
src/signalhandler.cpp
src/statustab.cpp
Expand Down Expand Up @@ -93,8 +96,12 @@ src/pngdisplayer.h
src/preparetab.h
src/printjob.h
src/printmanager.h
src/printprofile.h
src/printprofilemanager.h
src/printpumpingparameters.h
src/printtab.h
src/processrunner.h
src/profilestab.h
src/shepherd.h
src/signalhandler.h
src/statustab.h
Expand Down
139 changes: 95 additions & 44 deletions change-version-number.sh
Original file line number Diff line number Diff line change
@@ -1,68 +1,119 @@
#!/bin/bash
# shellcheck disable=SC2164

function blue-bar () {
echo -e "\r\x1B[1;37;44m$*\x1B[K\x1B[0m" 1>&2
}
LIGHTFIELD_ROOT="${PWD}"

function red-bar () {
echo -e "\r\x1B[1;33;41m$*\x1B[K\x1B[0m" 1>&2
}
#########################################################
## ##
## No user-serviceable parts below this point. ##
## ##
#########################################################

function error-trap () {
red-bar Failed\!
function usage () {
cat 1>&2 <<HERE
Usage: $(basename "$0") [-t <release-train>] <a.b.c[.d]>
Changes the LightField version in all the relevant places in the source.

-t <release-train> Sets the release train. Default: ${DEFAULT_RELEASE_TRAIN}
Available release trains:
base LightField with DLPC350 support
dlpc4710 LightField with DLP4710 support
<a.b.c[.d]> Version number. If the fourth element is omitted,
it defaults to 0.
HERE
exit 1
}

if [ -z "$1" ]
# shellcheck disable=SC1090
source "${LIGHTFIELD_ROOT}/shared-stuff.sh"

ARGS=$(getopt -n 'change-version-number.sh' -o 't:' -- "${@}")
# shellcheck disable=SC2181
if [ ${?} -ne 0 ]
then
red-bar 'Usage: change-version-number.sh <a.b.c[.d]>'
exit 1
usage
fi
eval set -- "$ARGS"

while [ -n "${1}" ]
do
case "${1}" in
'-t')
RELEASE_TRAIN="${2}"
shift
;;

'--')
shift
break
;;
esac
shift
done

VER=( $(IFS="."; echo $1) )
if [ "${#VER[@]}" -lt 3 ]
if [ -z "${1}" ]
then
red-bar 'Too few components to version number -- must be at least three.'
exit 1
elif [ "${#VER[@]}" -eq 3 ]
red-bar 'No version number given.'
usage
elif [ -n "${2}" ]
then
VER[3]=0
elif [ "${#VER[@]}" -gt 4 ]
red-bar 'Too many arguments given.'
usage
else
VERSION="${1}"
fi

mapfile -t -d. VER < <(echo -n "${VERSION}")
COUNT=${#VER[@]}

if [ "${COUNT}" -lt 3 ]
then
red-bar 'Too many components to version number -- must be at most four.'
exit 1
red-bar 'Too few components in version number -- must be at least three.'
usage
elif [ "${COUNT}" -gt 4 ]
then
red-bar 'Too many components in version number -- must be at most four.'
usage
fi

if [ "${COUNT}" -eq 3 ]
then
VER[3]=0
fi

STRINGVER="${VER[0]}.${VER[1]}.${VER[2]}.${VER[3]}"

LIGHTFIELD_ROOT="/home/lumen/Volumetric/LightField"
LIGHTFIELD_SRC="${LIGHTFIELD_ROOT}/src"
if [ -z "${RELEASE_TRAIN}" ]
then
RELEASE_TRAIN=base
fi

#cat <<HERE
#ARCHITECTURE: ${ARCHITECTURE}
#RELEASE_TRAIN: ${RELEASE_TRAIN}
#VERSION: ${VERSION}
#STRINGVER: ${STRINGVER}
#HERE

cd "${LIGHTFIELD_SRC}"
cd "${LIGHTFIELD_ROOT}/src"

blue-bar 'Generating src/version.h from src/version.h.in'

sed \
-e s/@@LIGHTFIELD_VERSION_STRING@@/${STRINGVER}/g \
-e s/@@LIGHTFIELD_VERSION_MAJOR@@/${VER[0]}/g \
-e s/@@LIGHTFIELD_VERSION_MINOR@@/${VER[1]}/g \
-e s/@@LIGHTFIELD_VERSION_TEENY@@/${VER[2]}/g \
-e s/@@LIGHTFIELD_VERSION_BUILD@@/${VER[3]}/g \
< "version.h.in" \
> "version.h"
cp version.h.in version.h

apply-atsign-substitution VERSION_STRING "${STRINGVER}" version.h
apply-atsign-substitution VERSION_MAJOR "${VER[0]}" version.h
apply-atsign-substitution VERSION_MINOR "${VER[1]}" version.h
apply-atsign-substitution VERSION_TEENY "${VER[2]}" version.h
apply-atsign-substitution VERSION_BUILD "${VER[3]}" version.h
apply-atsign-substitution RELEASE_TRAIN "${RELEASE_TRAIN}" version.h

cd "${LIGHTFIELD_ROOT}"

blue-bar 'Updating build and packaging scripts'
perl \
-lpi \
-e "s/^\s*VERSION=\\d+\\.\\d+\\.\\d+(?:\\.\\d+)?\s*$/VERSION=${STRINGVER}/g;" \
install-lightfield.sh \
make-deb-package.sh \
make-upgrade-kit.sh \
unpack-kit-manually.sh

perl \
-lpi \
-e "s/lightfield-(debug|release)_\\d+\\.\\d+\\.\\d+(?:\\.\\d+)?_amd64/lightfield-\$1_${STRINGVER}_amd64/g;" \
debian/lightfield-debug.postinst \
debian/lightfield-release.postinst

apply-assignment-substitution ARCHITECTURE "${ARCHITECTURE}" shared-stuff.sh
apply-assignment-substitution RELEASE_TRAIN "${RELEASE_TRAIN}" shared-stuff.sh
apply-assignment-substitution VERSION "${STRINGVER}" shared-stuff.sh

blue-bar 'Done!'
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
lightfield (1.0.11.0) stable; urgency=medium

* New: Support for DLP4710 projector.

-- LightField packager <[email protected]> Thu, 09 Jan 2020 17:18:06 -0800

lightfield (1.0.10.0) stable; urgency=medium

* Fixed: LightField will now notice a USB stick that was connected before it starts.
Expand Down
14 changes: 8 additions & 6 deletions debian/debug-control → debian/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ Homepage: https://github.com/VolumetricBio/LightField
Vcs-Browser: https://github.com/VolumetricBio/LightField
Vcs-Git: https://github.com/VolumetricBio/LightField.git

Package: lightfield-debug
Package: lightfield@@RELEASE_TRAIN@@-@@BUILDTYPE@@
Architecture: any
Breaks: lightfield-release
Conflicts: lightfield-release
Replaces: lightfield-release
Provides: lightfield-@@BUILDTYPE@@
Breaks: lightfield-@@ANTIBUILDTYPE@@
Conflicts: lightfield-@@ANTIBUILDTYPE@@
Replaces: lightfield-@@ANTIBUILDTYPE@@
Depends:
lightfield-common (= ${binary:Version}),
lightfield-common@@RELEASE_TRAIN@@ (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends},
libhidapi-libusb0 (>> 0.8),
Expand All @@ -34,9 +35,10 @@ Recommends:
fonts-font-awesome (>= 5.0.10)
Description: Printer software for Volumetric's Lumen X 3D printer - debug version

Package: lightfield-common
Package: lightfield-common@@RELEASE_TRAIN@@
Architecture: all
Multi-Arch: foreign
Provides: lightfield-common
Depends:
${misc:Depends},
python3 (>= 3.6),
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions debian/lightfield-common-dlp4710.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
files/etc/apt/trusted.gpg.d/volumetric-keyring.gpg etc/apt/trusted.gpg.d
files/etc/sudoers.d/lumen-lightfield etc/sudoers.d
files/home/lumen/.bash_profile home/lumen
files/home/lumen/.real_bash_profile home/lumen
files/home/lumen/.gnupg/pubring.gpg home/lumen/.gnupg
files/home/lumen/.gnupg/pubring.kbx home/lumen/.gnupg
files/home/lumen/.gnupg/trustdb.gpg home/lumen/.gnupg
files/lib/udev/rules.d/90-dlp4710.rules lib/udev/rules.d
files/usr/share/lightfield/libexec/reset-lumen-arduino-port usr/share/lightfield/libexec
files/usr/share/lightfield/libexec/reset-lumen-projector-port usr/share/lightfield/libexec
files/usr/share/lightfield/libexec/printrun/* usr/share/lightfield/libexec/printrun
files/usr/share/lightfield/libexec/stdio-shepherd/* usr/share/lightfield/libexec/stdio-shepherd
files/usr/share/X11/xorg.conf.d/99-waveshare.conf usr/share/X11/xorg.conf.d
2 changes: 0 additions & 2 deletions debian/lightfield-common.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


#echo "+ lightfield-common.postinst: args are $*" 1>&2
case "$1" in
configure)
mkdir -p \
Expand Down
4 changes: 1 addition & 3 deletions debian/lightfield-common.postrm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# postrm script for lightfield-debug
# postrm script for lightfield-common
#
# see: dh_installdeb(1)
#
Expand All @@ -18,8 +18,6 @@
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


#echo "+ lightfield-debug.postrm: args are $*" 1>&2
case "$1" in
remove)
rm /etc/apt/sources.list.d/volumetric-lightfield.list 2>/dev/null
Expand Down
4 changes: 1 addition & 3 deletions debian/lightfield-common.preinst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# preinst script for lightfield-debug
# preinst script for lightfield-common
#
# see: dh_installdeb(1)
#
Expand All @@ -13,8 +13,6 @@
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


#echo "+ lightfield-debug.preinst: args are $*" 1>&2
case "$1" in
install)
rm /etc/sudoers.d/lumen-lightfield 2>/dev/null
Expand Down
51 changes: 0 additions & 51 deletions debian/lightfield-debug.postinst

This file was deleted.

Loading