Implement code review feedback. Add get_id_static to MavlinkStream items. Add implementation of MAV_CMD_SET_MESSAGE_INTERVAL, MAV_CMD_GET_MESSAGE_INTERVAL. Add deprecation message to REQUEST_DATA_STREAM.

This commit is contained in:
Chris Lovett
2016-06-15 18:41:39 -07:00
committed by Lorenz Meier
parent 4ef4be2d70
commit 534e10c96a
5 changed files with 332 additions and 104 deletions

View File

@@ -1346,7 +1346,7 @@ Mavlink::configure_stream(const char *stream_name, const float rate)
}
}
if (interval == 0) {
if (interval <= 0) {
/* stream was not active and is requested to be disabled, do nothing */
return OK;
}