-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sending raw IMU data to a UART #13961
Conversation
This looks like cooked data? |
It is loop rate data, not filtered, same data the EKF gets, which is exactly what we want, as we're running an external state estimator |
@tridge my point is that we use the word "raw" to mean something different in the IMU code. Perhaps |
63d2fb1
to
7638feb
Compare
My "raw" vs "cooked" thing has been addressed. Needs a rebase, 'though. Almost certainly the serial protocol number's been used. |
@@ -482,6 +483,16 @@ void AP_SerialManager::init() | |||
state[i].uart->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE); | |||
break; | |||
|
|||
case SerialProtocol_IMUOUT: | |||
#if !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this !defined(HAL_BUILD_AP_PERIPH)?
55b2cb2
to
4bb13e4
Compare
rebased |
@peterbarker it is unfiltered |
# Conflicts: # libraries/AP_SerialManager/AP_SerialManager.cpp # libraries/AP_SerialManager/AP_SerialManager.h
this is for supporting external visual odomotry systems which need the IMU data to correctly process image data # Conflicts: # libraries/AP_InertialSensor/AP_InertialSensor.cpp
This allows unfiltered IMU data to be sent at the main loop rate to a UART. This is for supporting external visual odomotry systems that need to augment image data with the autopilots IMU data
was used for this ANU research project: https://github.com/STR-ANU/eqf_vio