Browse Source

Copter: use a reference to DCM matrix

master
Andrew Tridgell 12 years ago
parent
commit
d5875676b1
  1. 2
      ArduCopter/ArduCopter.pde

2
ArduCopter/ArduCopter.pde

@ -1961,7 +1961,7 @@ static void read_AHRS(void) @@ -1961,7 +1961,7 @@ static void read_AHRS(void)
static void update_trig(void){
Vector2f yawvector;
Matrix3f temp = ahrs.get_dcm_matrix();
const Matrix3f &temp = ahrs.get_dcm_matrix();
yawvector.x = temp.a.x; // sin
yawvector.y = temp.b.x; // cos

Loading…
Cancel
Save