mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Massive overhaul of how the physical/logical layout mapping is done, to make it
more consistent and bidirectional everywhere and just generally better. Hopefully this fixes that pesky 1581 problem.
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
#include "globals.h"
|
||||
#include "flux.h"
|
||||
#include "sector.h"
|
||||
#include "layout.h"
|
||||
#include "fmt/format.h"
|
||||
|
||||
Sector::Sector(const LogicalLocation& location):
|
||||
LogicalLocation(location),
|
||||
physicalTrack(Layout::remapTrackLogicalToPhysical(location.logicalTrack)),
|
||||
physicalSide(Layout::remapSideLogicalToPhysical(location.logicalSide))
|
||||
{}
|
||||
|
||||
Sector::Sector(const Location& location):
|
||||
LogicalLocation({ location.logicalTrack, location.logicalSide, 0 }),
|
||||
physicalTrack(location.physicalTrack),
|
||||
physicalHead(location.head),
|
||||
logicalTrack(location.logicalTrack),
|
||||
logicalSide(location.head)
|
||||
physicalSide(location.physicalSide)
|
||||
{}
|
||||
|
||||
std::string Sector::statusToString(Status status)
|
||||
|
||||
Reference in New Issue
Block a user