diff --git a/conf/messages.xml b/conf/messages.xml index ab765c4ece9..f7c61a90fc5 100644 --- a/conf/messages.xml +++ b/conf/messages.xml @@ -913,7 +913,7 @@ - + diff --git a/sw/airborne/modules/digital_cam/dc.c b/sw/airborne/modules/digital_cam/dc.c index d9890beef4c..2228ecc9177 100644 --- a/sw/airborne/modules/digital_cam/dc.c +++ b/sw/airborne/modules/digital_cam/dc.c @@ -94,10 +94,10 @@ uint16_t dc_photo_nr = 0; void dc_send_shot_position(void) { + // angles in decideg int16_t phi = DegOfRad(stateGetNedToBodyEulers_f()->phi*10.0f); int16_t theta = DegOfRad(stateGetNedToBodyEulers_f()->theta*10.0f); - // course in decideg - int16_t course = DegOfRad(*stateGetHorizontalSpeedDir_f()) * 10; + int16_t psi = DegOfRad(stateGetNedToBodyEulers_f()->psi*10.0f); // ground speed in cm/s uint16_t speed = (*stateGetHorizontalSpeedNorm_f()) * 10; int16_t photo_nr = -1; @@ -114,7 +114,7 @@ void dc_send_shot_position(void) &stateGetPositionLla_i()->alt, &phi, &theta, - &course, + &psi, &speed, &gps.tow); }