|
|
|
@ -453,6 +453,19 @@ void AP_MotorsMatrix::output_disarmed()
@@ -453,6 +453,19 @@ void AP_MotorsMatrix::output_disarmed()
|
|
|
|
|
output_min(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AP_MotorsMatrix::output_unsafe() |
|
|
|
|
{ |
|
|
|
|
int8_t i; |
|
|
|
|
|
|
|
|
|
// fill the motor_out[] array for HIL use and send minimum value to each motor
|
|
|
|
|
for( i=0; i<AP_MOTORS_MAX_NUM_MOTORS; i++ ) { |
|
|
|
|
if( motor_enabled[i] ) { |
|
|
|
|
motor_out[i] = _rc_throttle->radio_min + constrain_int16(_throttle_unsafe,0,AP_MOTORS_THROTTLE_UNSAFE_MAX);; |
|
|
|
|
hal.rcout->write(_motor_to_channel_map[i], motor_out[i]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// output_disarmed - sends commands to the motors
|
|
|
|
|
void AP_MotorsMatrix::output_test() |
|
|
|
|
{ |
|
|
|
|