diff options
author | tstellanova <tstellanova+github@gmail.com> | 2013-08-23 13:27:16 -0700 |
---|---|---|
committer | tstellanova <tstellanova+github@gmail.com> | 2013-08-23 13:27:16 -0700 |
commit | d1fd1bbbf7c7fd6bc76137257d6ecb91e8b6f3d4 (patch) | |
tree | 755e69842a9f317a181e3e049911f9ec90a9811c /src | |
parent | ccf0916f16a530b9c544d28d83f58636ce1938bb (diff) | |
download | px4-firmware-d1fd1bbbf7c7fd6bc76137257d6ecb91e8b6f3d4.tar.gz px4-firmware-d1fd1bbbf7c7fd6bc76137257d6ecb91e8b6f3d4.tar.bz2 px4-firmware-d1fd1bbbf7c7fd6bc76137257d6ecb91e8b6f3d4.zip |
Fix timestamp on rates_sp
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/multirotor_att_control/multirotor_attitude_control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/multirotor_att_control/multirotor_attitude_control.c b/src/modules/multirotor_att_control/multirotor_attitude_control.c index 12d16f7c7..c78232f11 100644 --- a/src/modules/multirotor_att_control/multirotor_attitude_control.c +++ b/src/modules/multirotor_att_control/multirotor_attitude_control.c @@ -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++; } |