Commit Graph

51 Commits

Author SHA1 Message Date
Chris Esposito f13b720e22 DO_QUOTE macro 2019-04-01 21:35:58 +11:00
Chris Esposito 5cc7c9425d Standard QSettings fixes Windows calibration issue 2019-04-01 20:00:43 +11:00
Chris Esposito aff7f91b7d help/about updated for continuous release 2019-04-01 19:53:19 +11:00
Sebastián Mestre e6f0e24a28 'Functiongencontrol refactor - part 3 (#74)
* move ChannelID to outside of functionGenControl

* move ChannelData out of functionGenControl

* make the genericUsbDriver fGenPtrs into an array

* Make genericUsbDriver store pointers to ChannelData instead of to functionGenControl

* split genericUsbDriver::setFunctionGen into two parts. Stop reassigning the fGen pointers

* Big functionGenControl refactor

- Create functionGen namespace
- Rename functionGenControl to DualChannelController
- Create a SingleChannelController class that holds all the
functionality of a single channel (i.e. almost all of it).
This class acts as a Qt wrapper over the actual data, it
gives it the ability to emit and recieve signals while
keeping the actual data copiable.
- Add an alias functionGenControl = DualChannelController
2019-03-26 10:12:08 +11:00
Sebastián Mestre c149063452 Functiongencontrol refactor - part 2 (#69)
* use an enum instead of int to identify function generator channels

* Use local 8 bit encoding instead of utf8 for file paths

* use static_cast instead of function-style casts

* remove length member from channelData struct. use reference captures on some lambdas
2019-03-07 19:58:52 +11:00
Chris Esposito 1479d95f97 frontend for offset and attenuation: 2019-02-17 19:08:50 +11:00
Chris Esposito 17277fece6 Fixed multimeter LCD display rendering issue 2019-02-17 18:52:42 +11:00
Chris Esposito b78a65174f Added attenuation and offset to backend 2019-02-17 16:39:11 +11:00
Chris Esposito b0ac0cc645 Added Documentation and Pinout links 2019-01-28 11:34:04 +11:00
Sebastián Mestre 015d41624d Isobuffer refactor (#64)
* make isobuffer.cpp follow the common bracket style

* Add a few utility functions to isoBuffer, and reorganize and comment isobuffer.h

* refactor a few functions in isoBuffer using the newly added functions

* Clean up isoBuffer::readBuffer. Requires particular attention during review

* remove unused variable isoBuffer::firstTime

* Fix formatting and add a comment to isoBuffer::maybeOutputSampleToFile

* move invariant out of loop in isoBuffer::writeBuffer_short

* Substantially refactor isoBuffer::readBuffer

* change spaces to tabs on isoBuffer.h

* spaces to tabs on isobuffer.cpp and isobuffer.h, but properly

* Enforce const correctness on some methods of isoBuffer

* Add some comments to isobuffer.cpp

* Remove duplication in isoBuffer::cap_xnfromxxx functions by extracting common functionality to a free function

* Format isobuffer.h and isobuffer.cpp

* add inserted count to isoBuffer

* further modification to isoBuffer::readBuffer

* Correct a comment in isoBuffer::readBuffer

* add an anonymous namespace with file-wide constants

* remove isoBuffer::openFile, and move initialization isoBuffer to initializer list

* add lines between if statements in isoBuffer::insertIntoBuffer

* add spaces after // to some comments

* extract common functionality from writeBuffer_xxx functions to function template

* update header file to reflect previous commits

* make isoBuffer::return nullptr in a troublesome case

* add space after // to some other comments

* Make capSample a member function of isoBuffer, delete a macro in isobuffer.cpp

* clean up various comments and declarations in isobuffer.cpp

* make isoBuffer::gainBuffer work for any gain value

* make enableFileIO use the constant definitions made in a recent commit

* Remove type argument from isoBuffer::serialManage

* make isoBuffer::readBuffer return a zero-filled buffer instead of null

* Remove isoBuffer::glitchInsert

* Add a bunch of TODOs to isobuffer.cpp and isobuffer.h

* Rename member variables of isoBuffer to have an m_ prefix

* Move isoBuffer::capSample comparison functors to anonymous namespace

* Make CONSOLE_UPDATE_TIMER_PERIOD on isobuffer.h a constexpr intead of a macro
2019-01-23 16:13:40 +11:00
Chris Esposito 2b5ce2ecc4 Supports odd and even parity 2018-12-11 20:25:14 +11:00
Chris Esposito 1d9f2398bb Nicer looking textEdits 2018-11-06 11:50:26 +11:00
Chris Esposito 7a2f8cf35a Added option to hide graphs when paused 2018-09-05 08:26:21 +10:00
Chris Esposito 1a3fd72041 Can put scope range dialog on main window 2018-09-04 20:24:08 +10:00
Chris Esposito c96dd98c0f Added start of UI elements for I2C 2018-09-03 06:11:53 +10:00
EspoTek 2c2db8855b Fixed resolution scaling issues. (See Issue #46) 2018-08-12 16:28:14 +10:00
EspoTek 655258e98d Merge branch 'master' of https://github.com/EspoTek/Labrador 2018-08-12 16:18:33 +10:00
Chris Esposito 2d1bd5f438 resolution hard-coded 2018-08-07 22:11:12 +10:00
Chris Esposito ddf60d5c63 Low resolution mode only activated on low resolution displays 2018-08-08 03:10:47 +10:00
Chris Esposito b55ec2b0aa Fixed rendering issues on low-resolution displays 2018-08-08 02:52:56 +10:00
EspoTek c5495ca806 On-boot calibration calls PSU calibration too 2018-06-04 19:18:26 +10:00
EspoTek b9f37da420 Added PSU Calibration 2018-06-04 19:07:21 +10:00
Chris Esposito bb55118192 Android code fixed and Librador in place. 2018-05-19 15:23:22 +10:00
Chris Esposito f6ee6f0844 Added new function to firmware, to kickstart isochronous stream. 2018-04-02 16:21:54 +10:00
Chris Esposito a846895e53 Shared Lib can handle basic avrDebug() call over USB. 2018-03-29 13:29:36 +11:00
Chris Esposito eaaa4691bd Added demo skeleton for librador 2018-03-28 14:23:34 +11:00
Chris Esposito c026f07103
Quick edit 3/4 2018-02-18 13:20:09 +11:00
Chris Esposito 0d66cb870b QThread exits properly, preventing occasional crash on USB disconnect 2018-02-17 14:50:14 +11:00
Chris Esposito 704cb19b2c Fixed builds on desktop. Added "file->quit" button 2018-02-11 11:34:39 +11:00
Chris Esposito e4a458adc9 Android Interface improved for higher-DPI devices. 2018-02-11 11:21:19 +11:00
Chris Esposito 370857eff4 You can actually leave DAQ playback. Numbers on PSU slider no longer cut off. 2017-12-28 16:16:42 +11:00
Chris Esposito 025df96ea6 DAQ Playback tested and working 2017-12-28 13:23:33 +11:00
Chris Esposito 277df7a7a1 Fixed some bugs in file I/O 2017-12-27 16:07:22 +11:00
Chris Esposito a772cfb39a DAQ supports Multimeter now 2017-12-27 14:38:16 +11:00
Chris Esposito d5dad1f13f DAQ Settings in. 2017-12-27 12:44:49 +11:00
Chris Esposito d8ea339c56 DAQ Settings in place, just no GUI to configure them. 2017-12-24 14:08:27 +11:00
Chris Esposito 44703c1b35 Manual firmware recovery in the GUI 2017-12-24 13:07:28 +11:00
Chris Esposito 9f9e4e48c6 Prompts user to calibrate on launch (if uncalibrated) 2017-12-24 11:35:42 +11:00
Chris Esposito 57eac0f46e Firmware Flashing Message in Linux 2017-12-24 11:13:06 +11:00
EspoTek 96cb814e8e Firmware flashing more robust on Windows. Can't fail due to having too short a wait. Mac/Linux/Android not improved!! 2017-12-01 17:03:13 +11:00
EspoTek c93cf854da Bit of scaffolding for I2C. Meme commit. 2017-12-01 15:31:21 +11:00
EspoTek 2e803a6f94 extended last patch to CH2 also. 2017-11-28 15:31:33 +11:00
EspoTek 3ab936673a Serial Decoding detects wire disconnects and stops. 2017-11-28 13:09:52 +11:00
EspoTek 2e3babc808 added RMS measure, fixed the max/min/mean when AC coupling enabled 2017-11-07 15:06:40 +11:00
EspoTek ab8ff4c302 Fixed android build issues stemming from last patch. 2017-11-07 14:11:03 +11:00
EspoTek 42554094fc Added in the large "cycle left/right" functions. 2017-11-07 14:06:35 +11:00
EspoTek 56aaa39bad User can manually set delay from oscilloscope->range->enter manually 2017-11-07 13:54:38 +11:00
EspoTek 662021ebab User can select which channel they want to record, and get file dialog prompt. 2017-11-07 13:31:26 +11:00
EspoTek 6e8e03d4a4 User now selects which channel they want to take a snapshot of. 2017-11-07 13:08:25 +11:00
EspoTek 9ee91d2a42 "Snapshot" asks user where they want to save w/ dialog 2017-11-04 16:52:19 +11:00