Skip to content
Snippets Groups Projects
Commit 4104e28a authored by Malaurie Bernard's avatar Malaurie Bernard
Browse files

Fixing conversion mistakes in throuput/duration

parent 3678522b
No related branches found
No related tags found
1 merge request!17Malaurie's work on UI + CLI interface + AccelStepper interface
......@@ -208,13 +208,13 @@ float SyringeFilled::distance_mm_to_volume_mL(float distance_mm)
float SyringeFilled :: throughput_uL_per_min_to_duration_sec(float throughput_uL_per_min)
{
return (get_exchange_volume_mL()/throughput_uL_per_min)*1000*60;
return ((get_exchange_volume_mL()*1000*60)/throughput_uL_per_min);
}
float SyringeFilled :: duration_sec_to_throughput_uL_per_min(float duration_sec)
{
return (get_exchange_volume_mL()/duration_sec)*1000/60;
return (get_exchange_volume_mL()*1000*60/duration_sec);
}
float SyringeFilled :: throughput_uL_per_min_to_speed(float throughput_uL_per_min)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment