Skip to content

Algorithmic application#68

Open
LarsFaase wants to merge 27 commits intodevelopmentfrom
Algorithmic
Open

Algorithmic application#68
LarsFaase wants to merge 27 commits intodevelopmentfrom
Algorithmic

Conversation

@LarsFaase
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Owner

@kasper201 kasper201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though you do use Dutch comments I'll approve cuz the rest looks good and we don't have time anymore :/

@LarsFaase
Copy link
Copy Markdown
Collaborator Author

oepsie

// SerialPort + console instellingen
m_console->setEnabled(false);
QWidget* tab1 = m_console;
m_ui->tabWidget->addTab(tab1, "Developer mode");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont show the user developer stuff


void MainWindow::pushButton_2_clicked()
{
QByteArray dataToSend("help \r\n");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just an example I added, where is the actual shell usage to let the user write/read to/from sd card?


void optimizeRoute(vector<int>& route, vector<Point>& points) {
bool improved = true;
while (improved) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while improved?
makes more sense to have the loop while not improved yet, this reads slightly odd


void generate_routes() {
// definieer alle punten met microdegrees en kosten
allPoints = {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user wanted to be able to add/remove/edit easily.
I don't see letting the user compile a program to adjust a location as easily.
Please adjust this to be loaded from a text file

Copy link
Copy Markdown
Collaborator Author

@LarsFaase LarsFaase Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only stated in the requirements that it must be possible to add trivia

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Requirements v0.3.docx we have R10, and in our meeting on 13 February the customer said he'd like to be able to adjust questions and minigames.
Since questions are locked to locations, it is a side requirement that the customer must be able to add a location to be able to add a trivia question to it

Copy link
Copy Markdown
Collaborator

@TotallyOriginalUsername TotallyOriginalUsername left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also a main.cpp in the root folder, please move it away so a future group won't think it's the main file for the git repo.

There are also a lot of commits which could've been squashed

@jasperverplanke jasperverplanke self-requested a review June 10, 2025 20:33
QMessageBox::warning(this, tr("Warning"), message);
}

void MainWindow::sendJsonFileToDevice(const QString& filePath)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the equivalent to echoing a string in your terminal and doesn't save it to the text file on the device

m_serial->write(footer);
m_serial->waitForBytesWritten(100);

QMessageBox::information(this, tr("Success"), tr("File %1 sent to device").arg(filePath));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the error handling?

void showStatusMessage(const QString &message);
void showWriteError(const QString &message);
void drawRoutes();
void sendJsonFileToDevice(const QString& filePath);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no receiving scores, nor sending trivia?


// Open serial port
QSerialPort port(portName, this);
port.setBaudRate(QSerialPort::Baud9600);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like it overwrites settings? is that true?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relevant as the device default is 115200, so this is misleading, and likely to cause issues

}

// Send JSON-route
port.write(jsonData);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have a bad feeling about this if this tries to achieve what i think it tries to achieve.
i doubt files will be saved

@jasperverplanke jasperverplanke linked an issue Jul 1, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Progress does not get reset

4 participants