CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_EFI/AP_EFI_Scripting.cpp
Views: 1798
1
#include "AP_EFI_config.h"
2
3
#if AP_EFI_SCRIPTING_ENABLED
4
5
#include "AP_EFI_Scripting.h"
6
7
8
// Called from frontend to update with the readings received by handler
9
void AP_EFI_Scripting::update()
10
{
11
// Nothing to do here
12
}
13
14
// handle EFI message from scripting
15
bool AP_EFI_Scripting::handle_scripting(const EFI_State &efi_state)
16
{
17
internal_state = efi_state;
18
copy_to_frontend();
19
return true;
20
}
21
22
#endif // AP_EFI_SCRIPTING_ENABLED
23
24