Skip to content

Commit

Permalink
correct description of conf_general_detect_apply_all_foc
Browse files Browse the repository at this point in the history
Fault code is returned as -100 + fault, to allow backwards compatibility. VESC Tool decodes the code and displays the text description during detection.

The terminal also does the same when manually running the command.
  • Loading branch information
TechAUmNu committed Sep 27, 2022
1 parent f7a2e4c commit f77409c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conf_general.c
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,7 @@ static void detect_sensors_task(void *arg) {
* >=0: Success, see conf_general_autodetect_apply_sensors_foc codes
* -10: Flux linkage detection failed
* -x: see conf_general_autodetect_apply_sensors_foc faults
* -100 + fault: Fault code that occured during detection see "mc_fault_code"
*/
int conf_general_detect_apply_all_foc(float max_power_loss,
bool store_mcconf_on_success, bool send_mcconf_on_success) {
Expand Down

0 comments on commit f77409c

Please sign in to comment.