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
c0c9ea5d
Commit
c0c9ea5d
authored
1 year ago
by
Malaurie Bernard
Browse files
Options
Downloads
Patches
Plain Diff
Rename id to id_Syringe in class SyringeFilled to be more precise.
parent
e753a763
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
+6
-6
6 additions, 6 deletions
syringefilled.cpp
syringefilled.h
+4
-4
4 additions, 4 deletions
syringefilled.h
with
10 additions
and
10 deletions
syringefilled.cpp
+
6
−
6
View file @
c0c9ea5d
...
@@ -23,8 +23,8 @@ void SyringeFilled :: set_push(bool push)
...
@@ -23,8 +23,8 @@ void SyringeFilled :: set_push(bool push)
SyringeFilledJSON
[
"push"
]
=
push
;
SyringeFilledJSON
[
"push"
]
=
push
;
}
}
void
SyringeFilled
::
set_id
(
int
*
id
){
void
SyringeFilled
::
set_id
_syringe
(
int
*
id_syringe
){
SyringeFilledJSON
[
"id
"
]
=
id
;
SyringeFilledJSON
[
"id
_syringe"
]
=
id_syringe
;
}
}
...
@@ -49,14 +49,14 @@ bool SyringeFilled :: get_push()
...
@@ -49,14 +49,14 @@ bool SyringeFilled :: get_push()
return
SyringeFilledJSON
[
"push"
].
as
<
bool
>
();
return
SyringeFilledJSON
[
"push"
].
as
<
bool
>
();
}
}
int
*
SyringeFilled
::
get_id
()
int
*
SyringeFilled
::
get_id
_syringe
()
{
{
return
SyringeFilledJSON
[
"id"
].
as
<
int
*>
();
return
SyringeFilledJSON
[
"id
_syringe
"
].
as
<
int
*>
();
}
}
void
SyringeFilled
::
setupJsonSyringeFilled
(
float
exchange_throughput_uL_per_sec
,
float
exchange_volume_mL
,
float
remaining_volume_mL
,
bool
push
,
int
*
id
)
void
SyringeFilled
::
setupJsonSyringeFilled
(
float
exchange_throughput_uL_per_sec
,
float
exchange_volume_mL
,
float
remaining_volume_mL
,
bool
push
,
int
*
id
_syringe
)
{
{
//ADD INITIALISATION VALUES TO THE DOC
//ADD INITIALISATION VALUES TO THE DOC
...
@@ -64,7 +64,7 @@ void SyringeFilled :: setupJsonSyringeFilled(float exchange_throughput_uL_per_se
...
@@ -64,7 +64,7 @@ void SyringeFilled :: setupJsonSyringeFilled(float exchange_throughput_uL_per_se
SyringeFilledJSON
[
"exchange_volume_mL"
]
=
exchange_volume_mL
;
SyringeFilledJSON
[
"exchange_volume_mL"
]
=
exchange_volume_mL
;
SyringeFilledJSON
[
"remaining_volume_mL"
]
=
remaining_volume_mL
;
SyringeFilledJSON
[
"remaining_volume_mL"
]
=
remaining_volume_mL
;
SyringeFilledJSON
[
"push"
]
=
push
;
SyringeFilledJSON
[
"push"
]
=
push
;
SyringeFilledJSON
[
"id"
]
=
SyringeJSON
[
"id"
];
SyringeFilledJSON
[
"id
_syringe
"
]
=
SyringeJSON
[
"id"
];
//GENERATE THE MINIFIED JSON AND SEND IT TO THE SERIAL PORT
//GENERATE THE MINIFIED JSON AND SEND IT TO THE SERIAL PORT
...
...
This diff is collapsed.
Click to expand it.
syringefilled.h
+
4
−
4
View file @
c0c9ea5d
...
@@ -13,7 +13,7 @@ class SyringeFilled : Motor
...
@@ -13,7 +13,7 @@ class SyringeFilled : Motor
float
_exchange_volume_mL
;
float
_exchange_volume_mL
;
float
_remaining_volume_mL
;
float
_remaining_volume_mL
;
bool
_push
;
//false means pull
bool
_push
;
//false means pull
int
*
_id
;
int
*
_id
_syringe
;
public
:
public
:
...
@@ -23,7 +23,7 @@ class SyringeFilled : Motor
...
@@ -23,7 +23,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
(
int
*
id
);
void
set_id
_syringe
(
int
*
id_syringe
);
//GET METHODS
//GET METHODS
...
@@ -31,13 +31,13 @@ class SyringeFilled : Motor
...
@@ -31,13 +31,13 @@ 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
();
int
*
get_id
_syringe
();
//JSON DOCUMENT
//JSON DOCUMENT
StaticJsonDocument
<
200
>
SyringeFilledJSON
;
//200 = RAM allocated to this document
StaticJsonDocument
<
200
>
SyringeFilledJSON
;
//200 = RAM allocated to this document
void
setupJsonSyringeFilled
(
float
exchange_throughput_uL_per_sec
,
float
exchange_volume_mL
,
float
remaining_volume_mL
,
bool
push
,
int
*
id
);
void
setupJsonSyringeFilled
(
float
exchange_throughput_uL_per_sec
,
float
exchange_volume_mL
,
float
remaining_volume_mL
,
bool
push
,
int
*
id
_syringe
);
};
};
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