mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 16:31:31 +00:00
Simplifies the rotational multiplier upon construction, to mitigate against scale issues later.
This commit is contained in:
parent
7061537ff5
commit
376b26c1e4
@ -19,6 +19,7 @@ Drive::Drive(unsigned int input_clock_rate, int revolutions_per_minute, int numb
|
|||||||
Storage::TimedEventLoop(input_clock_rate),
|
Storage::TimedEventLoop(input_clock_rate),
|
||||||
rotational_multiplier_(60, revolutions_per_minute),
|
rotational_multiplier_(60, revolutions_per_minute),
|
||||||
available_heads_(number_of_heads) {
|
available_heads_(number_of_heads) {
|
||||||
|
rotational_multiplier_.simplify();
|
||||||
}
|
}
|
||||||
|
|
||||||
Drive::~Drive() {
|
Drive::~Drive() {
|
||||||
|
Loading…
Reference in New Issue
Block a user