Replay: force COMPASS_ORIENT to 0

we use compass.setHIL() in body frame, or must use an orientation of 0
to give the right value
This commit is contained in:
Andrew Tridgell 2015-05-19 20:18:38 +10:00
parent 91b761cfb0
commit 34fe39f17d
1 changed files with 3 additions and 1 deletions

View File

@ -519,7 +519,9 @@ void MsgHandler_NTUN_Copter::process_message(uint8_t *msg)
bool MsgHandler::set_parameter(const char *name, float value)
{
const char *ignore_parms[] = { "GPS_TYPE", "AHRS_EKF_USE" };
const char *ignore_parms[] = { "GPS_TYPE", "AHRS_EKF_USE",
"COMPASS_ORIENT", "COMPASS_ORIENT2",
"COMPASS_ORIENT3"};
for (uint8_t i=0; i<sizeof(ignore_parms)/sizeof(ignore_parms[0]); i++) {
if (strncmp(name, ignore_parms[i], AP_MAX_NAME_SIZE) == 0) {
::printf("Ignoring set of %s to %f\n", name, value);