Skip to content

Commit

Permalink
AP_Scripting: Lua bindings for safety checks ESC, MotorsMatrix, EFI
Browse files Browse the repository at this point in the history
This commit introduces Lua bindings for the following methods:

- ESC- `get_last_telem_data_ms`
- MotorMatrix `get_lost_motor`
- MotorMatrix `get_thrust_boost`
- EFI `get_last_update_ms`

Note:
- For get_last_telem_data_ms - CPN reset is reported. But ESC disconnected with CPN is not reported. This needs to be looked into

SW-131
  • Loading branch information
loki077 committed Mar 22, 2024
1 parent e5de198 commit 71fb740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ singleton AP_ESC_Telem method get_usage_seconds boolean uint8_t 0 NUM_SERVO_CHAN
singleton AP_ESC_Telem method update_rpm void uint8_t 0 NUM_SERVO_CHANNELS uint16_t'skip_check float'skip_check
singleton AP_ESC_Telem method update_telem_data void uint8_t 0 NUM_SERVO_CHANNELS AP_ESC_Telem_Backend::TelemetryData uint16_t'skip_check
singleton AP_ESC_Telem method set_rpm_scale void uint8_t 0 NUM_SERVO_CHANNELS float'skip_check
singleton AP_ESC_Telem method get_last_telem_data_ms uint32_t uint8_t 0 NUM_SERVO_CHANNELS

include AP_Param/AP_Param.h
singleton AP_Param rename param
Expand Down Expand Up @@ -674,6 +675,7 @@ ap_object AP_EFI_Backend method handle_scripting boolean EFI_State
singleton AP_EFI depends (AP_EFI_SCRIPTING_ENABLED == 1)
singleton AP_EFI rename efi
singleton AP_EFI method get_backend AP_EFI_Backend uint8_t'skip_check
singleton AP_EFI method get_last_update_ms uint32_t

-- ----END EFI Library----

Expand Down

0 comments on commit 71fb740

Please sign in to comment.