[chronojump/michrolab] Updated functions in michrolab.h
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] Updated functions in michrolab.h
- Date: Wed, 27 Jul 2022 18:11:40 +0000 (UTC)
commit 7510dd04f6f09de15546cfd0cdf4b7ef4667710c
Author: Xavier Padullés <testing chronojump org>
Date: Wed Jul 27 16:50:53 2022 +0200
Updated functions in michrolab.h
arduino/michrolab/michrolab.h | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/arduino/michrolab/michrolab.h b/arduino/michrolab/michrolab.h
index 32512df69..4b2971979 100644
--- a/arduino/michrolab/michrolab.h
+++ b/arduino/michrolab/michrolab.h
@@ -16,6 +16,8 @@ void endLoadCellCapture();
void showLoadCellResults();
+void resultsBackground();
+
//Starts reading from the encoder alone
void startEncoderCapture(void);
@@ -50,13 +52,24 @@ void end_steadiness();
//Reads from the RCA to calculate jump heights
void startJumpsCapture();
-//Measuring the selected sensors as well as plotting and saving to SD
+//Measuring the selected sensors as well as plotting raw data and saving to SD
+//It also manage the buttons pressed
+void captureRaw();
+
+//Measuring the selected sensors as well as plotting bars of each repetition and saving to SD
//It also manage the buttons pressed
-void capture();
+void captureBars();
//Prints a float number with the units number at the selected positoin and precission
void printTftValue (float val, int x, int y, int fontSize, int decimal);
+/* Prints in the TFT a text. By default:
+ * color = WHITE
+ * fontSize = 2
+ * alignRight = false;
+ */
+void printTftText(String text, int x, int y, unsigned int color, int fontSize, bool alignRight);
+
//Reads whatever it is in the serial buffer
void serialEvent();
@@ -111,6 +124,9 @@ void setForceGoal();
//Saves the meadured data in the SD
void saveSD(String fileName);
+//Saves the results of the current jump
+void saveJump();
+
//Count how many dirs exists. Used to create new dirs with the correct numeration
int countDirs();
@@ -125,3 +141,18 @@ void redrawAxes(ILI9341_t3 & d, double gx, double gy, double w, double h, double
//Plot a set of bars stored in bars[]
void barPlot (float gx, float gy, float w, float h, float yhi, int numBars, int currentIndex, float abRatio,
unsigned int color);
+
+//Read the jumType.txt file and assign each row to a jumpTypes[] element
+void readJumpsFile();
+
+//Assign a jumpType to a jumpTypes[] element. The input String is of the same format as in the jumpType.txt
+void addJump(String row);
+
+//Read how many rows has the jumpTypes.txt
+void getTotalJumpTypes();
+
+//Print in the Serial a list of all jump types
+void printJumpTypesList();
+
+//Shows a simple report of the jump
+void showJumpsResults(float maxJump, unsigned int bestJumper, int totalJumps);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]