Settings-Datei fortgesetzt

This commit is contained in:
Bernhard Schräer
2026-01-20 13:24:56 +01:00
parent b5f7b5a45d
commit 874ebf51ba
5 changed files with 78 additions and 6 deletions

View File

@@ -1,9 +1,19 @@
#if !defined(__SETTINGS_H__)
#define __SETTINGS_H__
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#define MAX_LINE_LENGTH 256
struct APP_SETTINGS
{
int iDebugLevel; // Level of debug messages
char sExePath[MAX_PATH]; // Path of the executable
int iCanSimu = 0; // Simulate CAN if 1
int iMotorCount; // Number of used motors (1 or 2)
int iMotorPwrMinRaw; // Minimum power value for motor (raw value)
@@ -13,5 +23,6 @@ struct APP_SETTINGS
extern struct APP_SETTINGS settings;
void Settings_InitDefaultValues();
void Settings_ReadConfFile();
#endif