Updated documentation

This commit is contained in:
Luca Warmenhoven
2024-06-04 14:42:30 +02:00
parent c084443799
commit 3f560d9f47
4 changed files with 134 additions and 112 deletions

View File

@@ -3,59 +3,56 @@
``` mermaid
classDiagram
Raspberry pi --> NodeJS
Raspberry pi --> Database
NodeJS --> Androidapp : getExerciseData (Wifi, Rest API)
Raspberry Pi --> NodeJS
Raspberry Pi --> Database
NodeJS <--> Android Application : Request exercise data from database
Database <--> NodeJS : Database queries
ESP8266 --> Androidapp : getRotationalData (Wifi)
ESP8266 --> Android Application : Send rotation data via WiFi to\n Pepper Web Server
namespace Server {
class Raspberry pi {
class Raspberry Pi {
+MariaDB
+Apache2
+NodeJS
Database()
Webserver()
Database
Webserver
}
class Database {
+ExerciseID
+ExerciseName
+ExerciseShortDesc
+ExerciseDescription
+ExerciseVideo
+GyroCoordinates
+ExerciseImage
+GyroVectors
+MuscleGroup
}
class NodeJS {
+MariaDB
GetRandomExercise()
+Handle requests
}
}
namespace Pepper {
class Androidapp {
class Android Application {
+Java
+Android SDK
+QiSDK
motionProcessing()
robotMovement()
showVideo()
fitnessCycle()
+WebServer
+Acquire rotation data from sensors
}
}
namespace Hardware {
class ESP8266{
+RotationalX
+RotationalY
+RotationalZ
Gyroscope()
+RotationX
+RotationY
+RotationZ
Send rotation data to Web Server
}
}
```