mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Motors: ensure ENABLE_SCRIPTING is always defined
This commit is contained in:
parent
6fef352b8f
commit
9e8126d07c
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
#if ENABLE_SCRIPTING
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
#if ENABLE_SCRIPTING
|
||||
|
||||
#include "AP_MotorsMatrix.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user