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
Add first calibration abstraction #2339
Add first calibration abstraction #2339
Conversation
patrickelectric
commented
Jan 24, 2024
•
edited
edited
a608f5a
to
d04a672
Compare
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
f531854
to
eefbd5e
Compare
eefbd5e
to
ecdd039
Compare
ecdd039
to
dd98a6c
Compare
Status | ||
</th> | ||
<th class="text-left"> | ||
Calibrate |
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.
Calibrate | |
Calibrated at |
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.
Fixed
private calibrationStatus: MavResult | undefined | ||
|
||
constructor() { | ||
mavlink2rest.startListening(MAVLinkType.COMMAND_ACK).setCallback((content) => { |
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.
can we make it so this listener only lives while the calibration is being done?
start it at start() and discard() it when the calibration is successful/fails
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.
This is mostly a free websocket, it's handle by the server where it only sends the messages that match the regex. Since it's registered to COMMAND_ACK, it should have no performance impact.
dd98a6c
to
5cd5351
Compare
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.
wait. it is still showing "unknown pressure" here
Codewise is not possible, be sure to open in an anonymous tab. |
for (const barometer of this.baros) { | ||
// BARO_SPEC_GRAV Only exist for underwater vehicles | ||
const spec_gravity_param = autopilot_data.parameter('BARO_SPEC_GRAV') | ||
results[barometer.param] = printParam(spec_gravity_param) ?? 'Barometric' |
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.
printParam returns "Unknown" as a string if the parameter is undefined:
https://github.com/bluerobotics/BlueOS/blob/master/core/frontend/src/types/autopilot/parameter.ts#L44
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.
Check now
6874bc4
to
92e81f6
Compare
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
92e81f6
to
20ef8ff
Compare
ping @Williangalvani |