Fix timestamp on rates_sp

This commit is contained in:
tstellanova 2013-08-23 13:27:16 -07:00
parent ccf0916f16
commit d1fd1bbbf7
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ void multirotor_control_attitude(const struct vehicle_attitude_setpoint_s *att_s
}
rates_sp->thrust = att_sp->thrust;
//need to update the timestamp now that we've touched rates_sp
rates_sp->timestamp = hrt_absolute_time();
motor_skip_counter++;
}