Skip to content
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

Update AI Bridge Default Argument Values #506

Conversation

charitylxy
Copy link
Collaborator

@charitylxy charitylxy commented Feb 21, 2024

What does this Pull Request accomplish?

This PR aims to address the issue brought up in #482

  • Currently, default value for forward_coeffs, reverse_coeffs, electrical_vals and physical_vals are set to None
  • Impacted functions are:
    • add_ai_force_bridge_polynomial_chan
    • add_ai_force_bridge_table_chan
    • add_ai_pressure_bridge_polynomial_chan
    • add_ai_pressure_bridge_table_chan
    • add_ai_torque_bridge_polynomial_chan
    • add_ai_torque_bridge_table_chan

Why should this Pull Request be merged?

This PR will address issue #482 and changes the default values of the respective parameter for the impacted functions, following the default set in LabVIEW.

forward_coeffs=[0.0, 50.0], reverse_coeffs=[0.0, 0.02]

electrical_vals=[-2.0, 0.0, 2.0], physical_vals=[-100.0, 0.0, 100.0]

What testing has been done?

TODO: Detail what testing has been done to ensure this submission meets requirements.

charitylxy and others added 12 commits February 20, 2024 20:39
* Add support for DAQmx calibration info properties

* updated cal functions to property and docstrings

* fixed merged conflicts

* removed wanted cal attributes from exclude list

* removed extra new line

* rerun codegen and updated device file

* added test cases

* fixed python coding style violation

* fixed python coding style violation part 2

* addressed reviewer's comments

* fixed test case name and import order

* added try-finally in test case

* marked grpc_xfail for failed test case

* fixed conflicts and update test cases

* fixed linter error
@charitylxy charitylxy closed this Feb 21, 2024
@charitylxy charitylxy deleted the users/charitylxy/update-ai-bridge-default branch February 21, 2024 05:16
@charitylxy
Copy link
Collaborator Author

Encountered some codegen whitespace issue previously, closing this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants