Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulator #351

Closed
wants to merge 67 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
84fc6f5
add simulator.dart
kruegercharles Oct 20, 2023
01b2d10
add simulator to backend
kruegercharles Nov 9, 2023
83f7baa
implement basic mqtt client
kruegercharles Nov 9, 2023
447ff71
add typed_data to pubspec
kruegercharles Nov 9, 2023
16368a7
set speed to random number between 20 and 40
kruegercharles Nov 9, 2023
9fb2098
simulator sets speed for mocked driving
kruegercharles Nov 9, 2023
0ddb748
stash
kruegercharles Nov 10, 2023
08cb903
send current position via mqtt
kruegercharles Nov 15, 2023
243c7b0
undo using simulator from ride view and blocking speedometer tap
kruegercharles Nov 15, 2023
38c39a5
polishing
kruegercharles Nov 15, 2023
e944130
Fix typo
kruegercharles Nov 15, 2023
40838d0
send startride
kruegercharles Nov 15, 2023
4925329
check if simulator is enabled before sending data and show device id …
kruegercharles Nov 16, 2023
3db42f8
move simulator setting to normal settings instead of internal features
kruegercharles Nov 16, 2023
a3dfa71
remove unrelated change
kruegercharles Nov 20, 2023
3cc3ba5
remove unrelated change
kruegercharles Nov 20, 2023
5493e6d
check if pairing was successful before starting ride
kruegercharles Nov 26, 2023
b78a07f
add functions to implement
kruegercharles Nov 26, 2023
6724ba7
clientid must be app
kruegercharles Nov 26, 2023
4fb7a8d
subscribe to receive pair confirm
kruegercharles Nov 26, 2023
3f16322
reset pairsuccessful when disconnecting
kruegercharles Nov 26, 2023
c54bc99
only send a pairrequest once every 10s at most to prevent spamming th…
kruegercharles Nov 26, 2023
091d958
send pair confirm
kruegercharles Nov 26, 2023
f9352f4
stash
kruegercharles Nov 27, 2023
c249eb5
fix pairrequest§
kruegercharles Nov 28, 2023
e2a48db
send device name
kruegercharles Nov 28, 2023
7d8a4d4
rework pairing dialog
kruegercharles Nov 28, 2023
4ac7c42
Add TODOs to send traffic light to the simulator
PhilippMatthes Nov 30, 2023
7398bfc
dont use GPS inaccuracy during simulation
kruegercharles Dec 1, 2023
0e82735
stash
kruegercharles Dec 8, 2023
7b67b04
fix rebase problems
kruegercharles Dec 8, 2023
0f7e4c8
start simulation now shows correct text on button routing view
kruegercharles Dec 12, 2023
4972987
app sends now traffic light data to simulator
kruegercharles Dec 12, 2023
2420b7e
try to update text on button for start ride
kruegercharles Dec 12, 2023
1a23c94
send all trafficlight at start ride
kruegercharles Dec 12, 2023
f9e92cd
make finishridebutton stateless widget
kruegercharles Dec 12, 2023
81cc62c
dont send messages after receiving stopride
kruegercharles Dec 12, 2023
ee83e04
stop ride after receiving stopride
kruegercharles Dec 12, 2023
9d664fc
Rename finishRideButton callback
kruegercharles Dec 14, 2023
e831c7d
change from bigbutton to bigbuttonprimary
kruegercharles Dec 19, 2023
32c4ec0
fix pair request button
kruegercharles Jan 3, 2024
6bfb714
send bearing for traffic lights at the start of the ride
kruegercharles Jan 3, 2024
0d4de7d
send first position after pairconfirm
kruegercharles Jan 3, 2024
84205fd
use deviceid as clientid for mqtt
kruegercharles Jan 3, 2024
e877123
mark first position and send camera heading
kruegercharles Jan 3, 2024
6ef7615
send cameraheading with coords every second
kruegercharles Jan 4, 2024
492b367
simulator now works in dresden
kruegercharles Jan 4, 2024
459277d
send gps data of selected route before starting ride
kruegercharles Jan 6, 2024
44bd90a
remove routedataend
kruegercharles Jan 6, 2024
70ae05e
move simulator activation to internal features
kruegercharles Jan 6, 2024
0868eb1
remove smoothed bearing again
kruegercharles Jan 16, 2024
db3dd12
also send full route data if starting via normal button
kruegercharles Jan 16, 2024
48f1a6d
send first position with first coordiante of route
kruegercharles Jan 16, 2024
cbca458
send route data without index and move to simulator.dart
kruegercharles Jan 18, 2024
71a4406
move sendUpdatesToSimulator to simulator
kruegercharles Jan 18, 2024
d382688
move sendSignalGroups to simulator
kruegercharles Jan 18, 2024
f9fc9a9
improve documentation
kruegercharles Jan 18, 2024
1f89283
polishing
kruegercharles Jan 18, 2024
ff6c9e1
add comments & unify early returns in simulator
kruegercharles Jan 20, 2024
9b8dcef
move format to description of functions
kruegercharles Jan 20, 2024
fd15fe3
mark MQTT topic as static const
kruegercharles Jan 23, 2024
3530c75
add minHeight to buttons
kruegercharles Jan 23, 2024
204c366
add minHeight to buttons
kruegercharles Jan 23, 2024
7c04d17
redesign stopRide dialog
kruegercharles Jan 23, 2024
79e9b5a
remove pair request after conntecting to mqtt client
kruegercharles Jan 25, 2024
d413797
fix rebase problems
kruegercharles Jan 25, 2024
236c279
Add speed to NextCoordinate message
PhilippMatthes Feb 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix rebase problems
kruegercharles committed Jan 25, 2024
commit d41379791972bdee462ff177f55cd12559eafabb
4 changes: 1 addition & 3 deletions lib/ride/views/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart';
@@ -278,7 +276,7 @@ class RideViewState extends State<RideView> {
child: RideSpeedometerView(puckHeight: heightToPuckBoundingBox),
),
if (settings.datastreamMode == DatastreamMode.enabled) const DatastreamView(),
const FinishRideButton(),
finishRideButton,
if (!cameraFollowsUserLocation)
SafeArea(
bottom: true,