I_Component
: every object that should have a setup and be called in the main loop inherits from this interfaceI_BTSender
: every object that should send data through bluetooth inherits from this interface
button
object allows you to get a signal from the button.button.wasPressedOnce()
returns True if shortly pressedbutton.wasPressedOnceLong()
returns True if pressed longer than duration seconds
display
object allows you to print in the LCD-Screendisplay.setCursor(col, lin)
display.print("Hello")
prints at the cursor
scorer
object computes the scores using the sensor values.sensorPrinter
object uses the display to print the sensor values.
sonar
object allows you to get values from one sonar (not used)sonarCollection
object allows you to get values from multiple sonar objects. It contains a vector of sonarsimu
object interacts with the IMU through the I2C busgps
object allows you to get the values of the current position.
bluetooth
object gathers the data from the bluetooth sender objects and deals with the bluetooth connection.
Timer
: timer objects allow to measure the time beetween two times (tic() and toc())Coordinator
: coordinator allows components to do something in the loop if "their time has come"
main
: main code for the product. Never push on it.develop
: development branch with changes coming.feature branches
: short living branches to implement new features. Merge them ondevelop
with --no-ff to prevent fast forwarting if you are sure that the code works.
Model
: main class for adding and retrieving safety dataSafetyScore
: model for safety scoreSafetyIncident
: model for safety incident
LocationManager
: retrieves current user locationBluetoothManager
: creates conenction with 6ense device. Reads data every second and stores them in model
MainView
: fullscreen view containing all views
MapRouteDrawer
: colorizes the route according to safety score increment/decrementScoreView
: view of all safety scoresMapView
: view of integrated Apple MapRideButtonView
: start and stop button for recording rideIncidentCardView
: popup view of safety incidents