Adapt the Application
This step is optional.
As default the log message is set to "Hello AUTOSAR Adaptive World". This instruction explains how to adapt the application logic, using the log message as a simple example.
The application logic is stored in the application.cpp of your
application.
|
File location:
|
The Run Method
The Run method is the logic of the application.
-
If the application is reaching this point and the initialization went well it is reporting the application state
kRunningto theExecutionmanager. -
Afterwards the example is printing a log message.
-
As a last step the application state
kTerminatingis reported to theExecutionmanager.
Change the Output
-
Open
application.cpp -
Find the
Run()method -
Change the text of the
LogInfo
std::int8_t Application::Run() {
std::int8_t ret{EXIT_SUCCESS};
if (!has_initialization_failed_) {
this->ReportApplicationState(ara::exec::ApplicationState::kRunning);
log_.LogInfo() < "ADD YOUR LOG MESSAGE HERE";
…
}
…
}
|
Please ensure that the app terminates if the |