mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
ArduCopter: Add implementation of motors_output_enable to each motors_ frame type
This commit is contained in:
parent
a13e371d1e
commit
2bd2e9c774
@ -10,6 +10,16 @@ static void init_motors_out()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void motors_output_enable()
|
||||||
|
{
|
||||||
|
APM_RC.enable_out(MOT_1);
|
||||||
|
APM_RC.enable_out(MOT_2);
|
||||||
|
APM_RC.enable_out(MOT_3);
|
||||||
|
APM_RC.enable_out(MOT_4);
|
||||||
|
APM_RC.enable_out(MOT_5);
|
||||||
|
APM_RC.enable_out(MOT_6);
|
||||||
|
}
|
||||||
|
|
||||||
static void output_motors_armed()
|
static void output_motors_armed()
|
||||||
{
|
{
|
||||||
int roll_out, pitch_out;
|
int roll_out, pitch_out;
|
||||||
|
@ -10,6 +10,18 @@ static void init_motors_out()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void motors_output_enable()
|
||||||
|
{
|
||||||
|
APM_RC.enable_out(MOT_1);
|
||||||
|
APM_RC.enable_out(MOT_2);
|
||||||
|
APM_RC.enable_out(MOT_3);
|
||||||
|
APM_RC.enable_out(MOT_4);
|
||||||
|
APM_RC.enable_out(MOT_5);
|
||||||
|
APM_RC.enable_out(MOT_6);
|
||||||
|
APM_RC.enable_out(MOT_7);
|
||||||
|
APM_RC.enable_out(MOT_8);
|
||||||
|
}
|
||||||
|
|
||||||
static void output_motors_armed()
|
static void output_motors_armed()
|
||||||
{
|
{
|
||||||
int roll_out, pitch_out;
|
int roll_out, pitch_out;
|
||||||
|
@ -10,6 +10,18 @@ static void init_motors_out()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void motors_output_enable()
|
||||||
|
{
|
||||||
|
APM_RC.enable_out(MOT_1);
|
||||||
|
APM_RC.enable_out(MOT_2);
|
||||||
|
APM_RC.enable_out(MOT_3);
|
||||||
|
APM_RC.enable_out(MOT_4);
|
||||||
|
APM_RC.enable_out(MOT_5);
|
||||||
|
APM_RC.enable_out(MOT_6);
|
||||||
|
APM_RC.enable_out(MOT_7);
|
||||||
|
APM_RC.enable_out(MOT_8);
|
||||||
|
}
|
||||||
|
|
||||||
static void output_motors_armed()
|
static void output_motors_armed()
|
||||||
{
|
{
|
||||||
int roll_out, pitch_out;
|
int roll_out, pitch_out;
|
||||||
|
@ -9,6 +9,14 @@ static void init_motors_out()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void motors_output_enable()
|
||||||
|
{
|
||||||
|
APM_RC.enable_out(MOT_1);
|
||||||
|
APM_RC.enable_out(MOT_2);
|
||||||
|
APM_RC.enable_out(MOT_3);
|
||||||
|
APM_RC.enable_out(MOT_4);
|
||||||
|
}
|
||||||
|
|
||||||
static void output_motors_armed()
|
static void output_motors_armed()
|
||||||
{
|
{
|
||||||
int roll_out, pitch_out;
|
int roll_out, pitch_out;
|
||||||
|
@ -8,6 +8,13 @@ static void init_motors_out()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void motors_output_enable()
|
||||||
|
{
|
||||||
|
APM_RC.enable_out(MOT_1);
|
||||||
|
APM_RC.enable_out(MOT_2);
|
||||||
|
APM_RC.enable_out(MOT_4);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void output_motors_armed()
|
static void output_motors_armed()
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,16 @@ static void init_motors_out()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void motors_output_enable()
|
||||||
|
{
|
||||||
|
APM_RC.enable_out(MOT_1);
|
||||||
|
APM_RC.enable_out(MOT_2);
|
||||||
|
APM_RC.enable_out(MOT_3);
|
||||||
|
APM_RC.enable_out(MOT_4);
|
||||||
|
APM_RC.enable_out(MOT_5);
|
||||||
|
APM_RC.enable_out(MOT_6);
|
||||||
|
}
|
||||||
|
|
||||||
static void output_motors_armed()
|
static void output_motors_armed()
|
||||||
{
|
{
|
||||||
int out_min = g.rc_3.radio_min;
|
int out_min = g.rc_3.radio_min;
|
||||||
|
Loading…
Reference in New Issue
Block a user