Commit Graph

995 Commits

Author SHA1 Message Date
Jared Boone
7fd508dfbe Format remaining time on SD card as "HHH:MM:SS". 2016-05-11 12:02:39 -07:00
Jared Boone
7d3e697ea8 Rename SD record variables: "free"/"recorded" -> "available" 2016-05-11 11:50:40 -07:00
Jared Boone
b2322370a9 Display remaining capture time on SD card. 2016-05-11 11:22:57 -07:00
Jared Boone
f157c13442 Implement std::filesystem::space(). 2016-05-11 10:58:57 -07:00
Jared Boone
c48a88539a Check capture FIFO before waking M0 capture thread. 2016-05-10 14:39:24 -07:00
Jared Boone
b82eff51dd Refactor of capture buffer management between cores.
Instead of copying data into and out of FIFO, passing buffer pointers between cores that are sized to match preferred/ideal SD card write size.
2016-05-10 14:12:37 -07:00
Jared Boone
85a6ecd5dc Missing "using namespace". 2016-05-10 11:02:42 -07:00
Jared Boone
4c57c1205f SD debug display more informative card type. 2016-05-09 22:49:26 -07:00
Jared Boone
91ae692f90 SD debug display CSD value. 2016-05-09 22:48:33 -07:00
Jared Boone
cc9c5acc3c Remove SD card debug "detected" field. 2016-05-09 22:42:54 -07:00
Jared Boone
51b680c3bd Implement FatFs disk_ioctl MMC_GET_{TYPE,CSD}. 2016-05-09 21:55:57 -07:00
Jared Boone
95581f8c27 FatFs disk_ioctl(GET_BLOCK_SIZE) unimplemented, return correct value. 2016-05-09 21:55:06 -07:00
Jared Boone
03c6c80332 Factor out some SD card info formatting. 2016-05-09 21:53:01 -07:00
Jared Boone
dc2944d5e9 Make Widget::screen_rect() const.
Because I can.
2016-05-08 14:59:26 -07:00
Jared Boone
ab73d6155e Improve arrow key next focus algorithm. 2016-05-08 14:59:03 -07:00
Jared Boone
72cc6569ca Use UM10503 (user manual) suggestion for SD delay config. 2016-05-06 15:04:53 -07:00
Jared Boone
56a7b841cb Remove CaptureThread LED control. 2016-05-02 12:53:33 -07:00
Jared Boone
eeb4645242 Move lots of capture_thread code to .cpp. 2016-05-02 12:50:49 -07:00
Jared Boone
697df07501 Move Writer implementations to ui_record_view.cpp. 2016-05-02 12:34:42 -07:00
Jared Boone
97af4585b0 Missing #includes. 2016-05-02 12:26:53 -07:00
Jared Boone
2e6230e29c Rearrange UI code RecordView::start() to keep consistent in failure. 2016-05-02 11:55:53 -07:00
Jared Boone
3f36d8b7bf Push record file type support into RecordView. 2016-05-02 11:44:37 -07:00
Jared Boone
68faccfd10 Update Writer default destructor syntax. 2016-05-02 11:22:14 -07:00
Jared Boone
fa8105266c WAVFileWriter saves WAV files! 2016-05-01 11:31:20 -07:00
Jared Boone
80f94cbc29 Add File seek support. 2016-05-01 11:29:44 -07:00
Jared Boone
c5cae1034e Forgot virtual destructor on interface class.
So my Files weren't getting closed properly!
2016-05-01 11:29:19 -07:00
Jared Boone
0445a842db Rename args on Writer interface. 2016-05-01 11:07:50 -07:00
Jared Boone
2be105853e Shrink CaptureThread stack, undid earlier increase.
Moved File into Writer abstraction, passed in now, not created on stack.
2016-04-30 16:55:52 -07:00
Jared Boone
6a17be1f2c Abstract CaptureThread target class into Writer, implement RawFileWriter. 2016-04-30 16:34:50 -07:00
Jared Boone
b5fbab8e29 Pass a File into CaptureThread.
Groundwork for having a general output-stream interface.
2016-04-30 16:26:49 -07:00
Jared Boone
a2a2de9a23 Increase CaptureThread stack, now that File is created in new thread. 2016-04-30 15:13:54 -07:00
Jared Boone
0d6103916d Converge File object with std::fstream. Simplify LogFile.
LogFile no longer watches SD card presence and tries to open/close files dynamically.
2016-04-30 15:09:34 -07:00
Jared Boone
4d6fccd8ea Extract RecordView from AnalogAudioApp, CaptureApp. 2016-04-30 13:56:54 -07:00
Jared Boone
24192b4043 Capture: Write simple metadata for baseband and audio files.
Will probably turn the audio metadata file into .wav data, eventually.
2016-04-30 11:25:04 -07:00
Jared Boone
a6d41547a0 Make CaptureAppView capture functions same as AnalogAudioView. 2016-04-30 11:09:39 -07:00
Jared Boone
18e40562b5 Oops, 128K is not enough. 2016-04-29 11:27:31 -07:00
Jared Boone
12b8a1b2a9 Change next-file naming functions to work on filename stems.
This paves the way for writing metadata files with similar prefixes, and avoids confusing numbering of capture files with different extensions (e.g. BAD_0000.S16 and BBD_0000.S8).
2016-04-29 11:27:12 -07:00
Jared Boone
dc8c34487f Speed dropped_percent() common case, ensure dropped>0 returns >0%. 2016-04-27 12:16:37 -07:00
Jared Boone
be9f3362da Display percent of data dropped during capture to SD card. 2016-04-27 12:07:31 -07:00
Jared Boone
6ee886b90e Expose capture state to the UI. 2016-04-27 12:06:47 -07:00
Jared Boone
a72a3489cf Expose percent of data dropped during capture. 2016-04-27 12:04:02 -07:00
Jared Boone
11d15ec5b5 Add second tick handler for CaptureThread. 2016-04-27 12:03:43 -07:00
Jared Boone
8188b44439 Add Signal for per-second tick callbacks. 2016-04-27 12:02:17 -07:00
Jared Boone
7430e31578 Extract CaptureConfig from StreamOutput to CaptureThread.
So capture stats can be exposed by CaptureThread.
2016-04-27 10:56:50 -07:00
Jared Boone
75159fcc00 Use static StreamOutput::fifo for accessor methods. 2016-04-27 10:52:11 -07:00
Jared Boone
dc1ba7e6f3 Move CaptureThread::write_size into run(). 2016-04-27 10:44:44 -07:00
Jared Boone
1789868b8a Track bytes from baseband and dropped when entering capture FIFO. 2016-04-27 10:40:50 -07:00
Jared Boone
d63136c52e Remove unused StreamInput::written(). 2016-04-27 10:32:29 -07:00
Jared Boone
d2cf129fd5 Retain CaptureConfig pointer in StreamInput. 2016-04-27 10:32:06 -07:00
Jared Boone
3e08318012 Pass CaptureConfig to StreamInput as pointer. 2016-04-27 10:31:37 -07:00