Sub: Refactor 'strafe' to 'lateral'

This commit is contained in:
Rustom Jehangir 2016-04-10 14:43:35 -07:00 committed by Andrew Tridgell
parent 3a942434e7
commit 837f429bf0
5 changed files with 5 additions and 5 deletions

View File

@ -158,7 +158,7 @@ private:
RC_Channel *channel_throttle;
RC_Channel *channel_yaw;
RC_Channel *channel_forward;
RC_Channel *channel_strafe;
RC_Channel *channel_lateral;
// Dataflash
DataFlash_Class DataFlash{FIRMWARE_STRING};

View File

@ -50,7 +50,7 @@ void Sub::acro_run()
//control_in is range 0-1000
//radio_in is raw pwm value
motors.set_forward(channel_forward->radio_in);
motors.set_strafe(channel_strafe->radio_in);
motors.set_lateral(channel_lateral->radio_in);
}

View File

@ -156,5 +156,5 @@ void Sub::althold_run()
//control_in is range 0-1000
//radio_in is raw pwm value
motors.set_forward(channel_forward->radio_in);
motors.set_strafe(channel_strafe->radio_in);
motors.set_lateral(channel_lateral->radio_in);
}

View File

@ -60,5 +60,5 @@ void Sub::stabilize_run()
//control_in is range -1000-1000
//radio_in is raw pwm value
motors.set_forward(channel_forward->radio_in);
motors.set_strafe(channel_strafe->radio_in);
motors.set_lateral(channel_lateral->radio_in);
}

View File

@ -51,7 +51,7 @@ void Sub::transform_manual_control_to_rc_override(int16_t x, int16_t y, int16_t
channels[3] = r*rpyScale+rpyCenter; // yaw
channels[4] = mode; // for testing only
channels[5] = x*rpyScale+rpyCenter; // forward for ROV
channels[6] = y*rpyScale+rpyCenter; // strafe for ROV
channels[6] = y*rpyScale+rpyCenter; // lateral for ROV
channels[7] = camTilt; // camera tilt
channels[8] = lights1;
channels[9] = 0;