-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pfc] Actuator motion pre-flight-check (#3202)
* PFC for actuator deflections * [checks] Preflight check actuators [checks] PFC actuators merge-error * Fixes for other airframes * [pfc] Fix better debug information for actuator checks * [modules] Fix warnings in test build * Update conf/modules/imu_mpu9250_i2c.xml * Update conf/modules/imu_mpu9250_spi.xml * [uavcan] Fix possible misconfiguration and overflow --------- Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
- Loading branch information
1 parent
751edc5
commit 5fd7d56
Showing
12 changed files
with
515 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<module name="pfc_actuators" dir="checks"> | ||
<doc> | ||
<description> | ||
Preform a pre flight check of the actuators and validate by looking at the feedback. | ||
</description> | ||
<define name="PFC_ACTUATORS" value="{}" description="Struct containing the setup of the preflight check"/> | ||
<define name="PFC_ACTUATORS_MAX_ANGLE_ERROR" value="0.1" description="Maximum allowed angle error in radians +/-"/> | ||
<define name="PFC_ACTUATORS_MAX_RPM_ERROR" value="250" description="Maximum allowed RPM error +/-"/> | ||
<define name="PFC_ACTUATORS_DEBUG" value="false" description="Enable debug output in the GCS"/> | ||
</doc> | ||
<settings> | ||
<dl_settings> | ||
<dl_settings name="Checks"> | ||
<dl_setting var="act_start" min="0" step="1" max="1" values="OFF|START" handler="start" module="checks/pfc_actuators" type="fun"/> | ||
</dl_settings> | ||
</dl_settings> | ||
</settings> | ||
<dep> | ||
<depends>@datalink,preflight_checks</depends> | ||
</dep> | ||
<header> | ||
<file name="pfc_actuators.h"/> | ||
</header> | ||
<init fun="pfc_actuators_init()"/> | ||
<makefile> | ||
<file name="pfc_actuators.c"/> | ||
<test> | ||
<define name="PFC_ACTUATORS" value="{{}}"/> | ||
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/> | ||
<define name="DOWNLINK_DEVICE" value="uart0"/> | ||
<define name="USE_UART0"/> | ||
</test> | ||
</makefile> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.