ardupilot/libraries/AP_EFI/AP_EFI_Scripting.cpp

20 lines
414 B
C++
Raw Normal View History

2022-09-04 04:15:49 -03:00
#include "AP_EFI_Scripting.h"
#if AP_EFI_SCRIPTING_ENABLED
// Called from frontend to update with the readings received by handler
void AP_EFI_Scripting::update()
{
// Nothing to do here
}
// handle EFI message from scripting
bool AP_EFI_Scripting::handle_scripting(const EFI_State &efi_state)
2022-09-04 04:15:49 -03:00
{
internal_state = efi_state;
copy_to_frontend();
return true;
2022-09-04 04:15:49 -03:00
}
#endif // AP_EFI_SCRIPTING_ENABLED