Skip to content

Commit 1edc51c

Browse files
authored
Merge pull request #547 from davidgiven/driveselect
Add a flux visualiser to the GUI.
2 parents 7054a0e + 6f7054c commit 1edc51c

19 files changed

+1544
-270
lines changed

FluxEngine.cydsn/CortexM3/ARM_GCC_541/Release/FluxEngine.hex

Lines changed: 248 additions & 248 deletions
Large diffs are not rendered by default.

lib/drive.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto2";
22

33
import "lib/common.proto";
44

5-
// Next: 14
5+
// Next: 15
66
message DriveProto
77
{
88
optional int32 drive = 1
@@ -26,6 +26,10 @@ message DriveProto
2626
default = 0,
2727
(help) = "Bias to apply to the head position (in tracks)"
2828
];
29+
optional int32 group_offset = 14 [
30+
default = 0,
31+
(help) = "When writing groups, erase all tracks except this one in each group"
32+
];
2933
optional int32 head_width = 10
3034
[ default = 1, (help) = "Width of the head (in tracks)" ];
3135
optional int32 tpi = 11 [ default = 96, (help) = "TPI of drive" ];

lib/readerwriter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void writeTracks(FluxSink& fluxSink,
203203
Logger() << BeginWriteOperationLogMessage{
204204
physicalTrack, location.head};
205205

206-
if (offset == 0)
206+
if (offset == config.drive().group_offset())
207207
{
208208
auto fluxmap = producer(location);
209209
if (!fluxmap)

src/formats/brother120.textpb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ decoder {
4141
}
4242

4343
drive {
44-
head_bias: 1
44+
head_bias: 0
45+
group_offset: 1
4546
}
4647

4748
tracks {

src/gui/build.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
ifneq ($(shell $(WX_CONFIG) --version),)
22

33
FLUXENGINE_GUI_SRCS = \
4+
src/gui/fluxviewercontrol.cc \
5+
src/gui/fluxviewerwindow.cc \
6+
src/gui/hexviewerwindow.cc \
7+
src/gui/layout.cpp \
48
src/gui/main.cc \
59
src/gui/mainwindow.cc \
6-
src/gui/visualisation.cc \
7-
src/gui/layout.cpp \
10+
src/gui/visualisationcontrol.cc \
811

912
FLUXENGINE_GUI_OBJS = \
1013
$(patsubst %.cpp, $(OBJDIR)/%.o, \

0 commit comments

Comments
 (0)