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
0240fdb0
Commit
0240fdb0
authored
1 year ago
by
Malaurie Bernard
Browse files
Options
Downloads
Patches
Plain Diff
Changing the name of clockwise_equals_forward to clockwise_equals_push.
parent
a63a5100
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
+5
-5
5 additions, 5 deletions
syringefilled.cpp
syringefilled.h
+11
-4
11 additions, 4 deletions
syringefilled.h
with
16 additions
and
9 deletions
syringefilled.cpp
+
5
−
5
View file @
0240fdb0
...
...
@@ -36,7 +36,7 @@ void SyringeFilled :: set_screw_thread_mm(float screw_thread_mm)
SyringeFilledJSON
[
"screw_thread_mm"
]
=
screw_thread_mm
;
}
void
SyringeFilled
::
set_clockwise_equals_
forward
(
bool
clockwise_equals_
forward
)
void
SyringeFilled
::
set_clockwise_equals_
push
(
bool
clockwise_equals_
push
)
{
SyringeFilledJSON
[
"clockwise_equals_push"
]
=
clockwise_equals_push
;
}
...
...
@@ -78,9 +78,9 @@ float SyringeFilled :: get_screw_thread_mm()
return
SyringeFilledJSON
[
"screw_thread_mm"
].
as
<
float
>
();
}
bool
SyringeFilled
::
get_clockwise_equals_
forward
()
bool
SyringeFilled
::
get_clockwise_equals_
push
()
{
return
SyringeFilledJSON
[
"clockwise_equals_
forward
"
].
as
<
float
>
();
return
SyringeFilledJSON
[
"clockwise_equals_
push
"
].
as
<
float
>
();
}
bool
SyringeFilled
::
get_emergency
()
...
...
@@ -89,7 +89,7 @@ bool SyringeFilled :: get_emergency()
}
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
)
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_
push
)
{
//ADD INITIALISATION VALUES TO THE DOC
...
...
@@ -99,7 +99,7 @@ void SyringeFilled :: setupJsonSyringeFilled(float exchange_throughput_uL_per_se
SyringeFilledJSON
[
"push"
]
=
push
;
SyringeFilledJSON
[
"id_syringe"
]
=
SyringeJSON
[
"id"
];
SyringeFilledJSON
[
"screw_thread_mm"
]
=
screw_thread_mm
;
SyringeFilledJSON
[
"clockwise_equals_
forward
"
]
=
clockwise_equals_
forward
;
SyringeFilledJSON
[
"clockwise_equals_
push
"
]
=
clockwise_equals_
push
;
...
...
This diff is collapsed.
Click to expand it.
syringefilled.h
+
11
−
4
View file @
0240fdb0
...
...
@@ -29,8 +29,7 @@ class SyringeFilled : public Motor
//Syringe_Pump
float
_screw_thread_mm
;
bool
_clockwise_equals_forward
;
bool
_clockwise_equals_push
;
//Limit_Switch
bool
_emergency
;
...
...
@@ -67,7 +66,7 @@ class SyringeFilled : public Motor
//JSON 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
,
Syringe
*
id_syringe
,
float
screw_thread_mm
,
bool
clockwise_equals_
forward
);
void
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_
push
);
//CONVERSIONS
...
...
@@ -75,10 +74,18 @@ class SyringeFilled : public Motor
//MOVEMENTS
float
move
();
float
go_to_zero
();
//a implementer
//LIMIT SWITCH
void
manage_emergency
(
bool
pressed
,
bool
stepperMoving
);
//METHODS CLI
bool
check_configuration
();
//a implementer
void
show_configuration
();
//a implementer
float
distance_to_volume
(
float
distance
,
Syringe
*
id_syringe
);
//a implementer
//set_emergency ? emergency() ? =ajouter un membre emergency
//runfromEmergency ?
};
//extern SyringeFilled syringefilled;
\ No newline at end of file
extern
SyringeFilled
syringe_filled
;
\ No newline at end of file
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