Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: frontend: vehicle-setup: allow configuring failsafes #2723

Open
ES-Alexander opened this issue Jun 21, 2024 · 6 comments
Open

core: frontend: vehicle-setup: allow configuring failsafes #2723

ES-Alexander opened this issue Jun 21, 2024 · 6 comments
Labels
ardupilot-manager enhancement New feature or request ui User Interface feature

Comments

@ES-Alexander
Copy link
Collaborator

ES-Alexander commented Jun 21, 2024

  • Supported in QGC

  • Maybe include an editable checklist, with default values of common pre-dive/launch checks

    • Charged batteries
    • Ensure enclosures and vent are sealed
    • Equipment packed
    • etc

Failsafe Parameters

  • Control Station Heartbeat Loss
    • FS_GCS_ENABLE (optional)
    • FS_GCS_ENABL (Plane -_-)
    • FS_GCS_TIMEOUT (optional)
  • Pilot Input Loss (Sub)
    • FS_PILOT_INPUT
    • FS_PILOT_TIMEOUT
  • Radio Control Loss
    • RC_OVERRIDE_TIME
    • RC_FS_TIMEOUT
    • SERVO_RC_FS_MSK
  • Leak Detection (Sub)
    • FS_LEAK_ENABLE
    • Configuration details should (in future) be handled by a separate Leak Sensor page
    • LEAK1_PIN
    • LEAK1_LOGIC
    • LEAK1_TYPE (optional)
    • LEAK2_PIN
    • LEAK2_LOGIC
    • LEAK2_TYPE (optional)
    • LEAK3_PIN
    • LEAK3_LOGIC
    • LEAK3_TYPE (optional)
  • Excess Internal Pressure (Sub)
    • FS_PRESS_ENABLE
    • FS_PRESS_MAX
  • Excess Internal Temperature (Sub)
    • FS_TEMP_ENABLE
    • FS_TEMP_MAX
  • Terrain Loss During AUTO (Sub)
    • FS_TERRAIN_ENAB
  • Low Battery
    • BATTn_FS_VOLTSRC
    • BATTn_LOW_VOLT
    • BATTn_LOW_TIMER
    • BATTn_LOW_MAH
    • BATTn_FS_LOW_ACT
    • BATTn_CRT_VOLT
    • BATTn_CRT_MAH
    • BATTn_FS_CRT_ACT
  • Excess Power Draw
    • MOT_BAT_VOLT_MAX
    • MOT_BAT_VOLT_MIN
    • MOT_BAT_CURR_MAX
    • MOT_BAT_CURR_TC
    • MOT_BAT_IDX
  • Disarm
    • MOT_SAFE_DISARM
    • MOT_SAFE_TIME
    • LOG_DISARMED
    • LOG_REPLAY
    • `LOG_FILE_DSRMROT
    • VTX_OPTIONS
  • Plane Disarm (Plane)
    • LAND_DISARM_DELAY
    • LAND_THEN_NEUTRL
    • Q_OPTIONS
    • Q_M_SAFE_DISARM
    • Q_M_SAFE_TIME
  • Sensor Fusion Uncertainty
    • FS_EKF_ACTION (optional)
    • FS_EKF_THRESH
    • FS_EKF_FILT (optional, Copter)
  • Crash Detection
    • FS_CRASH_CHECK
  • X Crash Detection (Plane)
    • CRASH_ACC_THRESH
    • CRASH_DETECT
  • Low Throttle
    • FS_THR_ENABLE
    • FS_THR_VALUE
  • Excess Vibrations
    • FS_VIBE_ENABLE
  • Dead Reckoning Recovery
    • FS_DR_ENABLE
    • FS_DR_TIMEOUT
  • Fence Breach
    • FENCE_ENABLE
    • FENCE_ACTION
    • FENCE_OPTIONS (optional)
    • FENCE_ALT_MAX (optional)
    • FENCE_MARGIN
    • FENCE_ALT_MIN
    • FENCE_AUTOENABLE (optional)
    • FENCE_RET_RALLY
    • FENCE_TYPE
  • Parachute Required
    • CHUTE_ENABLED
    • CHUTE_ALT_MIN
    • CHUTE_DELAY_MS
    • CHUTE_CRT_SINK
    • Configuration details should be handled by a separate Parachute page
    • CHUTE_TYPE
    • CHUTE_SERVO_ON
    • CHUTE_SERVO_OFF
  • Miscellaneous
    • FS_OPTIONS
    • OSD_FS_SCR
    • FS_SHORT_ACTN (Plane)
    • FS_SHORT_TIMEOUT (Plane)
    • FS_LONG_ACTN (Plane)
    • FS_LONG_TIMEOUT (Plane)
    • FS_ACTION (Rover)
    • FS_TIMEOUT (Rover)
  • Advanced Failsafe
    • AFS_ENABLE
    • AFS_MAN_PIN
    • AFS_HB_PIN
    • AFS_TERMINATE
    • AFS_TERM_ACTION
    • AFS_TERM_PIN
    • AFS_WP_COMMS
    • AFS_WP_GPS_LOSS
    • AFS_MAX_GPS_LOSS
    • AFS_MAX_COM_LOSS
    • AFS_AMSL_LIMIT
    • AFS_AMSL_ERR_GPS
    • AFS_DUAL_LOSS
    • AFS_GCS_TIMEOUT
    • AFS_QNH_PRESSURE
    • AFS_GEOFENCE
    • AFS_RC
    • AFS_RC_MAN_ONLY
    • AFS_RC_FAIL_TIME
    • AFS_MAX_RANGE
    • AFS_OPTIONS

Pre-Arm Parameters

  • GPS_HDOP_GOOD
  • SCR_DEBUG_OPTS
  • SCR_LD_CHECKSUM
  • SCR_RUN_CHECKSUM
  • AUTO_OPTIONS
  • GUID_OPTIONS
  • EFI_SVF_ARMCHECK
  • EFI_SP_ST_DISARM
  • ARMING_ACCTHRESH
  • ARMING_RUDDER
  • ARMING_MIS_ITEMS
  • ARMING_CHECK
  • ARMING_MAGTHRESH
  • ARMING_CRSDP_IGN
  • BARO_ALTERR_MAX
  • BATTn_ARM_VOLT
  • BATTn_ARM_MAH
  • BRD_SAFETYOPTION
  • BRD_VBUS_MIN
  • BRD_VSERVO_MIN
  • BRD_OPTIONS
  • BRD_HEAT_LOWMGN
  • COMPASS_OFFS_MAX
  • RC_OPTIONS
  • TMODE_FLAGS
  • TKOFF_RPM_MIN
  • TKOFF_THR_MINACC (Plane)
  • TKOFF_ACCEL_CNT (Plane)
  • TKOFF_TIMEOUT (Plane)
  • RTL_AUTOLAND (Plane)
  • FLIGHT_OPTIONS (Plane)
  • ARMING_BBOX_SPD (Plane)
  • ARMING_REQUIRE (Plane)
  • ICE_OPTIONS (Plane)
  • Q_ASSIST_SPEED (Plane)
  • Q_TAILSIT_ENABLE (Plane)
@ES-Alexander ES-Alexander added enhancement New feature or request ui User Interface feature ardupilot-manager labels Jun 21, 2024
@ES-Alexander
Copy link
Collaborator Author

ES-Alexander commented Jun 24, 2024

Some initial interface ideas:

image image

Currently unspecified:

  • MOT_BAT_*
  • RC
  • Throttle
  • Vibration
  • FS_Options bitmask
  • All "Advanced failsafes" (AFS_*)
  • Pre-arm checks (autopilot-related or otherwise)

@ES-Alexander
Copy link
Collaborator Author

ES-Alexander commented Jun 24, 2024

Extracted the main images as SVG files, so we can see what they look like in the actual interface:
dead_reckoning_recovery crash_detected terrain_lost ekf_variance_limit battery_limits leak_detected internal_temperature_limit internal_pressure_limit pilot_input_lost gcs_heartbeat_lost

Happy to redraw them neater / with different designs if we decide that's relevant (these first ones were fast sketches after all)

Some relevant icons:

  • mdi-timer-outline (timeout)
  • mdi-lightning-bolt-outline (action)
  • mdi-skull-crossbones-outline (critical)
  • mdi-pin
  • mdi-gauge-full (max pressure)
  • mdi-thermometer
  • mdi-format-vertical-align-top
  • mdi-close-octagon (stop/disarm)
  • mdi-close (disabled)

@ES-Alexander
Copy link
Collaborator Author

ES-Alexander commented Jun 29, 2024

Cleaned up the current designs as an alternative style option, and added a new one for radio control loss:

image

Correctly formatted SVGs downloadable here: failsafe-svgs.zip

@ES-Alexander
Copy link
Collaborator Author

I ended up making an in-between set as well, with a bit more of the drawn vibe returned:
image

Correctly formatted SVGs downloadable here: drawn70-failsafes.zip

@Williangalvani
Copy link
Member

I ended up making an in-between set as well, with a bit more of the drawn vibe returned

I do like this set a lot! I'll update to it.

@ES-Alexander
Copy link
Collaborator Author

ES-Alexander commented Jul 3, 2024

SMS has requested a modified colour scheme: SMS-failsafe-image-colours.pdf

Colour-corrected SVGs: drawn70-sms-colours.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ardupilot-manager enhancement New feature or request ui User Interface feature
Projects
None yet
Development

No branches or pull requests

2 participants