State machine fixes for HIL

This commit is contained in:
Lorenz Meier
2013-10-06 14:18:28 +02:00
parent 90c4664dce
commit d1871bd7bb
5 changed files with 56 additions and 32 deletions
+3
View File
@@ -1224,6 +1224,9 @@ Sensors::parameter_update_poll(bool forced)
void
Sensors::adc_poll(struct sensor_combined_s &raw)
{
/* only read if publishing */
if (!_publishing)
return;
/* rate limit to 100 Hz */
if (hrt_absolute_time() - _last_adc >= 10000) {