mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-21 02:17:08 +00:00
Creates the through-path that will be necessary for RWTS acceleration.
This commit is contained in:
@@ -77,6 +77,18 @@ void Drive::step(HeadPosition offset) {
|
||||
}
|
||||
}
|
||||
|
||||
std::shared_ptr<Track> Drive::step_to(HeadPosition offset) {
|
||||
HeadPosition old_head_position = head_position_;
|
||||
head_position_ = std::max(offset, HeadPosition(0));
|
||||
|
||||
if(head_position_ != old_head_position) {
|
||||
track_ = nullptr;
|
||||
setup_track();
|
||||
}
|
||||
|
||||
return track_;
|
||||
}
|
||||
|
||||
void Drive::set_head(int head) {
|
||||
head = std::min(head, available_heads_ - 1);
|
||||
if(head != head_) {
|
||||
|
||||
Reference in New Issue
Block a user