Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pousseseringue-arduino
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FabLAAS
PousseSeringue
pousseseringue-arduino
Commits
864a3ddd
Commit
864a3ddd
authored
1 year ago
by
Malaurie Bernard
Browse files
Options
Downloads
Patches
Plain Diff
Changing the type of id_syringe from int* to Syringe*.
parent
01753eb0
No related branches found
No related tags found
1 merge request
!17
Malaurie's work on UI + CLI interface + AccelStepper interface
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
syringefilled.cpp
+4
-4
4 additions, 4 deletions
syringefilled.cpp
syringefilled.h
+3
-3
3 additions, 3 deletions
syringefilled.h
with
7 additions
and
7 deletions
syringefilled.cpp
+
4
−
4
View file @
864a3ddd
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
syringefilled.h
+
3
−
3
View file @
864a3ddd
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment