AP_Motors: ensure ENABLE_SCRIPTING is always defined

This commit is contained in:
Peter Barker 2021-11-15 12:16:25 +11:00 committed by Peter Barker
parent 6fef352b8f
commit 9e8126d07c
6 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ void AP_MotorsMatrix::init(motor_frame_class frame_class, motor_frame_type frame
set_update_rate(_speed_hz);
}
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
// dedicated init for lua scripting
bool AP_MotorsMatrix::init(uint8_t expected_num_motors)
{

View File

@ -32,7 +32,7 @@ public:
// init
virtual void init(motor_frame_class frame_class, motor_frame_type frame_type) override;
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
// Init to be called from scripting
virtual bool init(uint8_t expected_num_motors);

View File

@ -13,7 +13,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
#include <AP_HAL/AP_HAL.h>
#include "AP_MotorsMatrix_6DoF_Scripting.h"

View File

@ -1,5 +1,5 @@
#pragma once
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
#include <AP_Common/AP_Common.h>
#include <AP_Math/AP_Math.h>

View File

@ -12,7 +12,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
// This allows motor roll, pitch, yaw and throttle factors to be changed in flight, allowing vehicle geometry to be changed

View File

@ -1,5 +1,5 @@
#pragma once
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
#include "AP_MotorsMatrix.h"