Skip to content

Commit

Permalink
Rover: torqeedo multiple backend integration
Browse files Browse the repository at this point in the history
shorten param prefix
add param conversion
  • Loading branch information
rmackay9 committed Mar 13, 2024
1 parent cd41e49 commit 921d8cb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Rover/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,9 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
AP_GROUPINFO("FS_OPTIONS", 48, ParametersG2, fs_options, 0),

#if HAL_TORQEEDO_ENABLED
// @Group: TRQD_
// @Path: ../libraries/AP_Torqeedo/AP_Torqeedo.cpp
AP_SUBGROUPINFO(torqeedo, "TRQD_", 49, ParametersG2, AP_Torqeedo),
// @Group: TRQ
// @Path: ../libraries/AP_Torqeedo/AP_Torqeedo_Params.cpp
AP_SUBGROUPINFO(torqeedo, "TRQ", 49, ParametersG2, AP_Torqeedo),
#endif

// @Group: PSC
Expand Down Expand Up @@ -808,6 +808,13 @@ const AP_Param::ConversionInfo conversion_table[] = {
{ Parameters::k_param_g2, 722, AP_PARAM_INT8, "PRX1_IGN_WID4" },
{ Parameters::k_param_g2, 1234, AP_PARAM_FLOAT, "PRX1_MIN" },
{ Parameters::k_param_g2, 1298, AP_PARAM_FLOAT, "PRX1_MAX" },
{ Parameters::k_param_g2, 113, AP_PARAM_INT8, "TRQ1_TYPE" },
{ Parameters::k_param_g2, 177, AP_PARAM_INT8, "TRQ1_ONOFF_PIN" },
{ Parameters::k_param_g2, 241, AP_PARAM_INT8, "TRQ1_DE_PIN" },
{ Parameters::k_param_g2, 305, AP_PARAM_INT16, "TRQ1_OPTIONS" },
{ Parameters::k_param_g2, 369, AP_PARAM_INT8, "TRQ1_POWER" },
{ Parameters::k_param_g2, 433, AP_PARAM_FLOAT, "TRQ1_SLEW_TIME" },
{ Parameters::k_param_g2, 497, AP_PARAM_FLOAT, "TRQ1_DIR_DELAY" },
};


Expand Down

0 comments on commit 921d8cb

Please sign in to comment.