Skip to content

Commit

Permalink
Stop building a FW that has both arming set to off, and idle_thrust h…
Browse files Browse the repository at this point in the history
…igher than 0.

Will only stop build time misconfiguration
  • Loading branch information
ToveRumar committed Jun 11, 2024
1 parent fe48d59 commit 7dbccfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/src/power_distribution_quadrotor.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
#include "math.h"
#include "platform_defaults.h"

#if (!defined(CONFIG_MOTORS_REQUIRE_ARMING) || (CONFIG_MOTORS_REQUIRE_ARMING == 0)) && defined(CONFIG_MOTORS_DEFAULT_IDLE_THRUST) && (CONFIG_MOTORS_DEFAULT_IDLE_THRUST > 0)
#error "CONFIG_MOTORS_REQUIRE_ARMING must be defined and not set to 0 if CONFIG_MOTORS_DEFAULT_IDLE_THRUST is greater than 0"
#endif
#ifndef CONFIG_MOTORS_DEFAULT_IDLE_THRUST
# define DEFAULT_IDLE_THRUST 0
#else
Expand Down

0 comments on commit 7dbccfd

Please sign in to comment.