-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Move calibration from commander to event framework #8200
Conversation
7cf3678
to
1c19662
Compare
This patch moves all the calibration routines out of commander to events framework. Also removes low prio thread from commander. Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com>
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com>
1c19662
to
82c93ce
Compare
Looks great! I resolved the conflicts, deleted some remaining low priority thread configuration, and rebased on px4 master. I'd like to get this in right after the v1.7.0 release. |
@@ -237,9 +242,10 @@ int do_airspeed_calibration(orb_advert_t *mavlink_log_pub) | |||
} | |||
|
|||
if (calibration_counter % 500 == 0) { | |||
calibration_log_info(mavlink_log_pub, "[cal] Create air pressure! (got %d, wanted: 50 Pa)", (int)diff_pres.differential_pressure_filtered_pa); | |||
tune_neutral(true); |
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.
TODO - review calibration tunes
@@ -257,7 +263,6 @@ int do_airspeed_calibration(orb_advert_t *mavlink_log_pub) | |||
calibration_log_info(mavlink_log_pub, CAL_QGC_PROGRESS_MSG, 100); | |||
|
|||
calibration_log_info(mavlink_log_pub, CAL_QGC_DONE_MSG, sensor_name); | |||
tune_neutral(true); |
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.
TODO - review calibration tunes
TODO for @dagar
|
@simonegu @LorenzMeier can we sync up this week to discuss plans for the tone_alarm uORB architecture? #7316 I'd strongly prefer getting tone usage via uORB in place first so that the calibration code isn't directly calling into the commander library in this PR. In fact we should also update the build system so that modules don't have free access to other modules like that (#8378). |
@sugnanprabhu Do you have time this week to rebase this? Ideally this would include porting the remaining parts of Commander into the (new) class architecture. |
I've rebased this here: @sugnanprabhu Could you review if I did the rebase correctly? If not, please rebase yourself and I'll delete my branch. |
This patch moves all calibration routines out of commander to events framework and removes commander_low_prio_loop.
Includes following set of changes.
i. commander does some minimal handling and move the arming state to ARMING_STATE_INIT.
ii. event framework waits until the arming state is moved to ARMING_STATE_INIT before timeout of 2secs.
This is one of the part of task mentioned in #8014