1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-07-24 07:24:13 +00:00

As well as a bunch of logging, reinstated rotation position preservation across tracks.

This commit is contained in:
Thomas Harte
2016-12-02 18:36:47 -05:00
parent 93c573bfa9
commit 81ee834530
3 changed files with 21 additions and 8 deletions

View File

@@ -25,13 +25,11 @@ Controller::Controller(unsigned int clock_rate, unsigned int clock_rate_multipli
set_expected_bit_length(one);
}
void Controller::setup_track() // Time initial_offset
void Controller::setup_track()
{
_track = _drive->get_track();
// _track = _disk->get_track_at_position(0, (unsigned int)_head_position);
// TODO: probably a better implementation of the empty track?
/* Time offset;
Time offset;
if(_track && _time_into_track.length > 0)
{
Time time_found = _track->seek_to(_time_into_track).simplify();
@@ -42,11 +40,10 @@ void Controller::setup_track() // Time initial_offset
{
offset = _time_into_track;
_time_into_track.set_zero();
}*/
}
reset_timer();
reset_timer_to_offset(offset * _rotational_multiplier);
get_next_event();
// reset_timer_to_offset(offset * _rotational_multiplier);
}
void Controller::run_for_cycles(int number_of_cycles)