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

Tweaks magic formulas.

The computer now at least seeks outward, until this attempt at drive speed calculation fails.
This commit is contained in:
Thomas Harte
2019-07-30 16:18:36 -04:00
parent 74c18d7861
commit 2aa308efdd
2 changed files with 6 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ DoubleDensityDrive::DoubleDensityDrive(int input_clock_rate, bool is_800k) :
// MARK: - Speed Selection
void DoubleDensityDrive::did_step(Storage::Disk::HeadPosition to_position) {
// printf("At track %d\n", to_position.as_int());
// The 800kb drive automatically selects rotation speed as a function of
// head position; the 400kb drive doesn't do so.
if(is_800k_) {
@@ -144,7 +145,6 @@ bool DoubleDensityDrive::read() {
case CA1|CA0|SEL: // Tachometer.
// (arbitrary)
// printf(".");
return get_tachometer();
case CA2: // Read data, lower head.