Skip to content

Commit

Permalink
Fixed Gyro roll direction
Browse files Browse the repository at this point in the history
The IMU is mounted upside down, so a carefully placed negative sign
should make it do.
  • Loading branch information
PSAS FC committed Jul 19, 2015
1 parent d3b9620 commit 7001fdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void state_receive_imu(const char *ID, uint8_t *timestamp, uint16_t len, void *b
* as accurate at any phase of the launch. */
current_state.acc_up = accel;
current_state.roll_rate = roll_rate;
current_state.roll_rate = -roll_rate; //Sensor coordinate frame is rotated 180

if (has_launched) {
const double dt = (now - last_time) / 1.0e9;
Expand Down

0 comments on commit 7001fdb

Please sign in to comment.