Skip to content

Commit

Permalink
logging: Log RTKFEstimate.
Browse files Browse the repository at this point in the history
  • Loading branch information
glowtape committed Jan 30, 2018
1 parent 61f39f3 commit 479cdf0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions flight/Modules/Logging/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,10 @@ static void register_custom_profile()
// For the default profile, we limit things to 100Hz (for now)
uint16_t min_period = MAX(get_minimum_logging_period(), 1);

UAVObjConnectCallbackThrottled(GyrosHandle(), obj_updated_callback, NULL, EV_UPDATED | EV_UNPACKED, min_period);
UAVObjConnectCallbackThrottled(ActuatorDesiredHandle(), obj_updated_callback, NULL, EV_UPDATED | EV_UNPACKED, min_period);
UAVObjConnectCallbackThrottled(RateDesiredHandle(), obj_updated_callback, NULL, EV_UPDATED | EV_UNPACKED, min_period);
UAVObjConnectCallback(GyrosHandle(), obj_updated_callback, NULL, EV_UPDATED | EV_UNPACKED);
UAVObjConnectCallback(ActuatorDesiredHandle(), obj_updated_callback, NULL, EV_UPDATED | EV_UNPACKED);
UAVObjConnectCallback(RTKFEstimateHandle(), obj_updated_callback, NULL, EV_UPDATED | EV_UNPACKED);
UAVObjConnectCallbackThrottled(StabilizationDesiredHandle(), obj_updated_callback, NULL, EV_UPDATED | EV_UNPACKED, min_period*2);
}

/**
Expand Down

0 comments on commit 479cdf0

Please sign in to comment.