-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
46 lines (42 loc) · 1.52 KB
/
main.cpp
File metadata and controls
46 lines (42 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* For CS 136, this project explores how autonomous vehicles respond to various driving conditions by simulating ethical decision-making scenarios.
*
* This program allows users to input various driving conditions such as pedestrian presence and road obstacles.
* Additionally, the user may input the road type, weather, and speed limits.
* Based on these inputs, the system evaluates the safest and most ethical action for the vehicle to take.
* It will also follow a framework that prioritizes pedestrian safety and minimizes overall harm.
*
* Decisions are logged with timestamps and justifications based on ethical reasoning.
* This will allow users to review the vehicle's logic and behavior.
*
* @author Cristal Lara
* @author Cielito Fernandez
* @author Gang Li
* @author Oisin Kiely
* @author Karmina Ramirez
* @version May 31, 2025
*/
#include <QApplication>
#include <QGuiApplication>
#include "MainWindow.h"
int main(int argc, char *argv[]) {
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
QApplication app(argc, argv);
MainWindow w;
w.show();
return app.exec();
}
/*
Sample Run:
🚦 Decision Made: The vehicle will continue to move forward.
☑️ Simulation Run at 05/31/2025 05:17 PM
Time: Sat May 31 17:17:15 2025
| Driving Conditions |
Pedestrian: No
Obstacle: No
Road Type: City
Speed Limit: 35
Weather: Clear
Decision: Continue
Justification: No immediate threats. The vehicle will proceed cautiously.
*/