Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_EFI/AP_EFI_Scripting.cpp
9316 views
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