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

Changing the type of id_syringe from int* to Syringe*.

parent 01753eb0
No related branches found
No related tags found
1 merge request!17Malaurie's work on UI + CLI interface + AccelStepper interface
...@@ -27,7 +27,7 @@ void SyringeFilled :: set_push(bool push) ...@@ -27,7 +27,7 @@ void SyringeFilled :: set_push(bool push)
SyringeFilledJSON["push"] = push; SyringeFilledJSON["push"] = push;
} }
void SyringeFilled :: set_id_syringe(int* id_syringe){ void SyringeFilled :: set_id_syringe(Syringe* id_syringe){
SyringeFilledJSON["id_syringe"] = id_syringe; SyringeFilledJSON["id_syringe"] = id_syringe;
} }
...@@ -63,9 +63,9 @@ bool SyringeFilled :: get_push() ...@@ -63,9 +63,9 @@ bool SyringeFilled :: get_push()
return SyringeFilledJSON["push"].as<bool>(); return SyringeFilledJSON["push"].as<bool>();
} }
int* SyringeFilled :: get_id_syringe() Syringe* SyringeFilled :: get_id_syringe()
{ {
return SyringeFilledJSON["id_syringe"].as<int*>(); return SyringeFilledJSON["id_syringe"].as<Syringe*>();
} }
float SyringeFilled :: get_screw_thread_mm() float SyringeFilled :: get_screw_thread_mm()
...@@ -80,7 +80,7 @@ bool SyringeFilled :: get_clockwise_equals_forward() ...@@ -80,7 +80,7 @@ bool SyringeFilled :: get_clockwise_equals_forward()
void SyringeFilled :: setupJsonSyringeFilled(float exchange_throughput_uL_per_sec, float exchange_volume_mL, float remaining_volume_mL, bool push, int* id_syringe, float screw_thread_mm, bool clockwise_equals_forward) void SyringeFilled :: setupJsonSyringeFilled(float exchange_throughput_uL_per_sec, float exchange_volume_mL, float remaining_volume_mL, bool push, Syringe* id_syringe, float screw_thread_mm, bool clockwise_equals_forward)
{ {
//ADD INITIALISATION VALUES TO THE DOC //ADD INITIALISATION VALUES TO THE DOC
......
...@@ -22,7 +22,7 @@ class SyringeFilled : Motor ...@@ -22,7 +22,7 @@ class SyringeFilled : Motor
bool _push; //false means pull bool _push; //false means pull
//Syringe //Syringe
int* _id_syringe; //Not sure how to manage it Syringe* _id_syringe; //Not sure how to manage it
//Pump-Syringe //Pump-Syringe
float _screw_thread_mm; float _screw_thread_mm;
...@@ -42,7 +42,7 @@ class SyringeFilled : Motor ...@@ -42,7 +42,7 @@ class SyringeFilled : Motor
void set_exchange_volume_mL(float exchange_volume_mL); void set_exchange_volume_mL(float exchange_volume_mL);
void set_remaining_volume_mL(float remaining_volume_mL); void set_remaining_volume_mL(float remaining_volume_mL);
void set_push(bool push); void set_push(bool push);
void set_id_syringe(int* id_syringe); void set_id_syringe(Syringe* id_syringe);
void set_screw_thread_mm(float screw_thread_mm); void set_screw_thread_mm(float screw_thread_mm);
void set_clockwise_equals_forward(bool clockwise_equals_forward); void set_clockwise_equals_forward(bool clockwise_equals_forward);
...@@ -52,7 +52,7 @@ class SyringeFilled : Motor ...@@ -52,7 +52,7 @@ class SyringeFilled : Motor
float get_exchange_volume_mL(); float get_exchange_volume_mL();
float get_remaining_volume_mL(); float get_remaining_volume_mL();
bool get_push(); bool get_push();
int* get_id_syringe(); Syringe* get_id_syringe();
float get_screw_thread_mm(); float get_screw_thread_mm();
bool get_clockwise_equals_forward(); bool get_clockwise_equals_forward();
......
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