Skip to content

Commit

Permalink
v0.83: embedded fonts, split ppm and adc wizards, plot performance fi…
Browse files Browse the repository at this point in the history
…x, fw3.30 support, fw upload power warning
  • Loading branch information
vedderb committed Oct 20, 2017
1 parent 7dcf7e4 commit 1fc2c83
Show file tree
Hide file tree
Showing 49 changed files with 414 additions and 92 deletions.
20 changes: 10 additions & 10 deletions build_lin
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
# sudo chown $USER qt5
# git clone https://code.qt.io/qt/qt5.git
# cd qt5
# git checkout 5.7
# git checkout 5.9
# perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
# mkdir build
# cd build
# ../configure -prefix /opt/Qt/5.7-static/ -release -opensource -confirm-license -static -no-largefile -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -no-openssl -qt-pcre -qt-xcb -no-xinput2 -no-glib -no-egl -no-xcursor -no-xfixes -no-xrandr -qt-xkbcommon-x11 -no-pulseaudio -no-alsa -no-compile-examples -no-cups -no-iconv -no-tslib -fontconfig -dbus-linked -qt-xcb -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -no-opengl -no-gstreamer -nomake examples -nomake tests -skip qtwebkit -skip qtwebsockets -skip qtwebkit-examples -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip qtcanvas3d -skip qtconnectivity -skip declarative -skip multimedia -skip quick1 -no-audio-backend -no-xkbcommon-evdev -no-evdev -no-libproxy -no-icu -no-accessibility -skip imageformats -no-dbus
# make -j4
# ../configure -prefix /opt/Qt/5.9-static/ -release -opensource -confirm-license -static -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -no-openssl -qt-pcre -qt-xcb -no-xinput2 -no-glib -no-egl -qt-xkbcommon-x11 -no-compile-examples -no-cups -no-iconv -no-tslib -dbus-linked -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -no-opengl -nomake examples -nomake tests -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip qtcanvas3d -skip qtconnectivity -skip declarative -skip multimedia -skip quick1 -no-xkbcommon-evdev -no-evdev -no-libproxy -no-icu -no-accessibility -skip imageformats -no-dbus -skip location -no-xinput2 -qt-freetype
# make -j9
# sudo make install

# Note: remove -no-dbus to get titlebar menus in ubuntu

export PATH=/opt/Qt/5.7-static/bin:$PATH
export PATH=/opt/Qt/5.9-static/bin:$PATH
rm -rf build/lin/*

# Original
qmake -config release "CONFIG += release_lin build_original"
make clean
make -j4
make -j8
rm -rf build/lin/obj
cd build/lin
zip vesc_tool_original_linux.zip `ls | grep -v '\.zip$'`
Expand All @@ -36,7 +36,7 @@ cd ../..
# Platinum
qmake -config release "CONFIG += release_lin build_platinum"
make clean
make -j4
make -j8
rm -rf build/lin/obj
cd build/lin
zip vesc_tool_platinum_linux.zip `ls | grep -v '\.zip$'`
Expand All @@ -46,7 +46,7 @@ cd ../..
# Gold
qmake -config release "CONFIG += release_lin build_gold"
make clean
make -j4
make -j8
rm -rf build/lin/obj
cd build/lin
zip vesc_tool_gold_linux.zip `ls | grep -v '\.zip$'`
Expand All @@ -56,7 +56,7 @@ cd ../..
# Silver
qmake -config release "CONFIG += release_lin build_silver"
make clean
make -j4
make -j8
rm -rf build/lin/obj
cd build/lin
zip vesc_tool_silver_linux.zip `ls | grep -v '\.zip$'`
Expand All @@ -66,7 +66,7 @@ cd ../..
# Bronze
qmake -config release "CONFIG += release_lin build_bronze"
make clean
make -j4
make -j8
rm -rf build/lin/obj
cd build/lin
zip vesc_tool_bronze_linux.zip `ls | grep -v '\.zip$'`
Expand All @@ -76,7 +76,7 @@ cd ../..
# Free of charge
qmake -config release "CONFIG += release_lin build_free"
make clean
make -j4
make -j8
rm -rf build/lin/obj
cd build/lin
zip vesc_tool_free_linux.zip `ls | grep -v '\.zip$'`
Expand Down
4 changes: 2 additions & 2 deletions build_lin_original_only
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

export PATH=/opt/Qt/5.7-static/bin:$PATH
export PATH=/opt/Qt/5.9-static/bin:$PATH
rm -rf build/lin/*

# Original
qmake -config release "CONFIG += release_lin build_original"
make clean
make -j4
make -j8
rm -rf build/lin/obj

14 changes: 7 additions & 7 deletions build_win
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# sudo mkdir mxe
# sudo chown $USER mxe
# git clone https://github.com/mxe/mxe.git
# sudo apt-get install autoconf automake autopoint bash bison bzip2 flex gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386
# sudo apt-get install autoconf automake autopoint bash bison bzip2 flex gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386 libtool-bin
# cd mxe
# make qtbase
# make qtserialport
Expand All @@ -17,7 +17,7 @@ rm -rf build/win/*
# Original
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_original"
make clean
make -j4
make -j8
rm -rf build/win/obj
cd build/win
zip vesc_tool_original_windows.zip vesc_tool*.exe
Expand All @@ -27,7 +27,7 @@ cd ../..
# Platinum
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_platinum"
make clean
make -j4
make -j8
rm -rf build/win/obj
cd build/win
zip vesc_tool_platinum_windows.zip vesc_tool*.exe
Expand All @@ -37,7 +37,7 @@ cd ../..
# Gold
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_gold"
make clean
make -j4
make -j8
rm -rf build/win/obj
cd build/win
zip vesc_tool_gold_windows.zip vesc_tool*.exe
Expand All @@ -47,7 +47,7 @@ cd ../..
# Silver
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_silver"
make clean
make -j4
make -j8
rm -rf build/win/obj
cd build/win
zip vesc_tool_silver_windows.zip vesc_tool*.exe
Expand All @@ -57,7 +57,7 @@ cd ../..
# Bronze
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_bronze"
make clean
make -j4
make -j8
rm -rf build/win/obj
cd build/win
zip vesc_tool_bronze_windows.zip vesc_tool*.exe
Expand All @@ -67,7 +67,7 @@ cd ../..
# Free of charge
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_free"
make clean
make -j4
make -j8
rm -rf build/win/obj
cd build/win
zip vesc_tool_free_windows.zip vesc_tool*.exe
Expand Down
2 changes: 1 addition & 1 deletion build_win_original_only
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ rm -rf build/win/*
# Original
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG += release_win build_original"
make clean
make -j4
make -j8
rm -rf build/win/obj

20 changes: 12 additions & 8 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <QStyleFactory>
#include <QSettings>
#include <QDesktopWidget>
#include <QFontDatabase>

int main(int argc, char *argv[])
{
Expand Down Expand Up @@ -78,14 +79,17 @@ int main(int argc, char *argv[])

QApplication a(argc, argv);

// Ignore the OS font settings and do scaling with the method above.
QFont font = qApp->font();
if (font.pixelSize() > 0) {
font.setPixelSize(11);
} else {
font.setPointSize(11);
}
qApp->setFont(font);
// Fonts
QFontDatabase::addApplicationFont("://res/fonts/DejaVuSans.ttf");
QFontDatabase::addApplicationFont("://res/fonts/DejaVuSans-Bold.ttf");
QFontDatabase::addApplicationFont("://res/fonts/DejaVuSans-BoldOblique.ttf");
QFontDatabase::addApplicationFont("://res/fonts/DejaVuSans-Oblique.ttf");
QFontDatabase::addApplicationFont("://res/fonts/DejaVuSansMono.ttf");
QFontDatabase::addApplicationFont("://res/fonts/DejaVuSansMono-Bold.ttf");
QFontDatabase::addApplicationFont("://res/fonts/DejaVuSansMono-BoldOblique.ttf");
QFontDatabase::addApplicationFont("://res/fonts/DejaVuSansMono-Oblique.ttf");

qApp->setFont(QFont("DejaVu Sans", 11));

// Style
a.setStyleSheet("");
Expand Down
5 changes: 5 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1224,3 +1224,8 @@ void MainWindow::on_actionVESCProjectForums_triggered()
{
QDesktopServices::openUrl(QUrl("http://vesc-project.com/forum"));
}

void MainWindow::on_actionLicense_triggered()
{
HelpDialog::showHelp(this, mVesc->infoConfig(), "gpl_text");
}
1 change: 1 addition & 0 deletions mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ private slots:
void on_actionVESCToolChangelog_triggered();
void on_actionFirmwareChangelog_triggered();
void on_actionVESCProjectForums_triggered();
void on_actionLicense_triggered();

private:
Ui::MainWindow *ui;
Expand Down
18 changes: 14 additions & 4 deletions mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<string>VESC Tool</string>
</property>
<property name="windowIcon">
<iconset resource="res_neutral.qrc">
<iconset resource="res_platinum.qrc">
<normaloff>:/res/icon.png</normaloff>:/res/icon.png</iconset>
</property>
<widget class="QWidget" name="centralWidget">
Expand Down Expand Up @@ -47,7 +47,7 @@
<string/>
</property>
<property name="pixmap">
<pixmap resource="res_neutral.qrc">:/res/logo.png</pixmap>
<pixmap resource="res_platinum.qrc">:/res/logo.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
Expand Down Expand Up @@ -471,7 +471,7 @@
<x>0</x>
<y>0</y>
<width>1054</width>
<height>19</height>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
Expand Down Expand Up @@ -510,6 +510,7 @@
<addaction name="separator"/>
<addaction name="actionSafetyInformation"/>
<addaction name="actionWarrantyStatement"/>
<addaction name="actionLicense"/>
</widget>
<widget class="QMenu" name="menuTools">
<property name="title">
Expand Down Expand Up @@ -1032,6 +1033,15 @@
<string>Firmware Changelog</string>
</property>
</action>
<action name="actionLicense">
<property name="icon">
<iconset resource="res.qrc">
<normaloff>:/res/icons/About-96.png</normaloff>:/res/icons/About-96.png</iconset>
</property>
<property name="text">
<string>License</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
Expand All @@ -1044,7 +1054,7 @@
</customwidgets>
<resources>
<include location="res.qrc"/>
<include location="res_neutral.qrc"/>
<include location="res_platinum.qrc"/>
</resources>
<connections/>
</ui>
2 changes: 1 addition & 1 deletion pages/pagedebugprint.ui
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<widget class="VTextBrowser" name="consoleBrowser">
<property name="font">
<font>
<family>Monospace</family>
<family>DejaVu Sans Mono</family>
</font>
</property>
<property name="lineWrapMode">
Expand Down
6 changes: 6 additions & 0 deletions pages/pagefirmware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,12 @@ void PageFirmware::on_uploadButton_clicked()
if (reply == QMessageBox::Yes) {
QByteArray data = file.readAll();
mVesc->commands()->startFirmwareUpload(data, isBootloader);

QMessageBox::warning(this,
tr("Warning"),
tr("The firmware upload is now ongoing. After the upload has finished you must wait at least "
"10 seconds before unplugging power. Otherwise the firmware will get corrupted and your "
"VESC will become bricked. If that happens you need a SWD programmer to recover it."));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pages/pageterminal.ui
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<widget class="QTextBrowser" name="terminalBrowser">
<property name="font">
<font>
<family>Monospace</family>
<family>DejaVu Sans Mono</family>
</font>
</property>
<property name="lineWrapMode">
Expand Down
8 changes: 8 additions & 0 deletions res.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,13 @@
<file>res/icons/Settings-96.png</file>
<file>res/bootloaders/60.bin</file>
<file>res/bootloaders/40_o_47_o_48_o_410_o_411_o_412_o_DAS_RS.bin</file>
<file>res/fonts/DejaVuSans.ttf</file>
<file>res/fonts/DejaVuSans-Oblique.ttf</file>
<file>res/fonts/DejaVuSansMono-Oblique.ttf</file>
<file>res/fonts/DejaVuSansMono-BoldOblique.ttf</file>
<file>res/fonts/DejaVuSansMono-Bold.ttf</file>
<file>res/fonts/DejaVuSansMono.ttf</file>
<file>res/fonts/DejaVuSans-BoldOblique.ttf</file>
<file>res/fonts/DejaVuSans-Bold.ttf</file>
</qresource>
</RCC>
8 changes: 8 additions & 0 deletions res/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
== 0.83 ==
* Embedded fonts for consistency and static linking without fontconfig.
* Split PPM wizard page into two pages.
* Split ADC wizard page into two pages.
* Removed devicepixelratio support from QCustomPlot as it slows it down a lot.
* FW 3.30 support.
* Added firmware upload unplug power warning.

== 0.82 ==
* Only show introduction if it has changed since the previous version.
* Proper fix for RT data time scale https://github.com/vedderb/vesc_tool/pull/5
Expand Down
Binary file modified res/firmwares/410_o_411_o_412/VESC_0005ohm.bin
Binary file not shown.
Binary file modified res/firmwares/410_o_411_o_412/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/410_o_411_o_412/VESC_default_no_hw_limits.bin
Binary file not shown.
Binary file modified res/firmwares/410_o_411_o_412/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/410_o_411_o_412/VESC_ws2811.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_0005ohm.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_33k.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_ws2811.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_ws2811_33k.bin
Binary file not shown.
Binary file modified res/firmwares/48/VESC_0005ohm.bin
Binary file not shown.
Binary file modified res/firmwares/48/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/48/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/48/VESC_ws2811.bin
Binary file not shown.
Binary file modified res/firmwares/60/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/60/VESC_default_no_hw_limits.bin
Binary file not shown.
Binary file modified res/firmwares/60/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/60/VESC_ws2811.bin
Binary file not shown.
5 changes: 5 additions & 0 deletions res/firmwares/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
=== FW 3.30 ===
* Activated iterative observer for better operation at high ERPM.
* Check for NAN and truncate some FOC variables.
* Speed controller windup protection improvement.

=== FW 3.29 ===
* Disabled throttle limit scaling for now.
* Increased packet timeout.
Expand Down
Binary file modified res/firmwares/DAS_RS/VESC_default.bin
Binary file not shown.
Binary file added res/fonts/DejaVuSans-Bold.ttf
Binary file not shown.
Binary file added res/fonts/DejaVuSans-BoldOblique.ttf
Binary file not shown.
Binary file added res/fonts/DejaVuSans-Oblique.ttf
Binary file not shown.
Binary file added res/fonts/DejaVuSans.ttf
Binary file not shown.
Binary file added res/fonts/DejaVuSansMono-Bold.ttf
Binary file not shown.
Binary file added res/fonts/DejaVuSansMono-BoldOblique.ttf
Binary file not shown.
Binary file added res/fonts/DejaVuSansMono-Oblique.ttf
Binary file not shown.
Binary file added res/fonts/DejaVuSansMono.ttf
Binary file not shown.
Loading

0 comments on commit 1fc2c83

Please sign in to comment.