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

Implementation of the show_configuration method in syringefilled for the cli interface

parent bcde7006
No related branches found
No related tags found
1 merge request!17Malaurie's work on UI + CLI interface + AccelStepper interface
......@@ -275,7 +275,33 @@ bool SyringeFilled :: check_configuration()
}
void SyringeFilled :: show_configuration()
/***
-Argument : /
-Return : /
-Action : Displays syringe filled attributes
***/
{
Motor::showConfiguration();
auto step = whereStep();
Serial.printf("# push clockwise: %s\n"
"# diameter: %g mm\n"
"# capacity: %g uL\n"
"# rate: %g uL/s = %g mm/s\n"
"# volume remaining: %g uL (target)\n"
"# direction: %s\n"
"# emergency: %d\n"
"# current position: %g mm\n",
get_clockwise_equals_push()? "yes": "no",
get_id_syringe()->get_internal_diameter_mm(),
get_id_syringe()->get_total_volume_mL(),
get_exchange_throughput_uL_per_sec(),
volume_to_distance(get_exchange_throughput_uL_per_sec(), get_id_syringe()),
get_remaining_volume_mL(),
get_push()? "infuse": "withdraw",
get_emergency(),
stepToMm(step));
}
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