Main function for the car controls service. More...
#include "ControlsManager.hpp"
#include <QCoreApplication>
#include <csignal>
#include <iostream>
Go to the source code of this file.
Functions | |
void | handleSigint (int) |
SIGINT signal handler. | |
int | main (int argc, char *argv[]) |
Entry point for the car controls service. | |
Variables | |
volatile bool | keepRunning = true |
Main function for the car controls service.
This file contains the main function for the car controls service.
Definition in file main.cpp.
void handleSigint | ( | int | ) |
int main | ( | int | argc, |
char * | argv[] ) |
Entry point for the car controls service.
argc | The number of command-line arguments. |
argv | The array of command-line arguments. |
Initializes the QCoreApplication and sets up signal handling for SIGINT. Instantiates the ControlsManager and starts the event loop. If an exception is thrown during execution, it is caught and logged, returning a non-zero exit status. The application runs until quit is invoked.
Definition at line 43 of file main.cpp.