Skip to content

Commit

Permalink
#338: Fix yawrate sign in commander_generic packets
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Aug 2, 2018
1 parent 3e881b6 commit f6c0e73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/src/crtp_commander_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static void velocityDecoder(setpoint_t *setpoint, uint8_t type, const void *data

setpoint->mode.yaw = modeVelocity;

setpoint->attitudeRate.yaw = values->yawrate;
setpoint->attitudeRate.yaw = -values->yawrate;
}

/* zDistanceDecoder
Expand All @@ -137,7 +137,7 @@ static void zDistanceDecoder(setpoint_t *setpoint, uint8_t type, const void *dat

setpoint->mode.yaw = modeVelocity;

setpoint->attitudeRate.yaw = values->yawrate;
setpoint->attitudeRate.yaw = -values->yawrate;


setpoint->mode.roll = modeAbs;
Expand Down Expand Up @@ -255,7 +255,7 @@ static void altHoldDecoder(setpoint_t *setpoint, uint8_t type, const void *data,

setpoint->mode.yaw = modeVelocity;

setpoint->attitudeRate.yaw = values->yawrate;
setpoint->attitudeRate.yaw = -values->yawrate;


setpoint->mode.roll = modeAbs;
Expand Down Expand Up @@ -285,7 +285,7 @@ static void hoverDecoder(setpoint_t *setpoint, uint8_t type, const void *data, s


setpoint->mode.yaw = modeVelocity;
setpoint->attitudeRate.yaw = values->yawrate;
setpoint->attitudeRate.yaw = -values->yawrate;


setpoint->mode.x = modeVelocity;
Expand Down

0 comments on commit f6c0e73

Please sign in to comment.