Skip to content

Commit

Permalink
AP_Relay: Add engine start functions
Browse files Browse the repository at this point in the history
  • Loading branch information
WickedShell committed Sep 26, 2023
1 parent 185688c commit 263f1f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Relay/AP_Relay_Params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const AP_Param::GroupInfo AP_Relay_Params::var_info[] = {
// @Param: FUNCTION
// @DisplayName: Relay function
// @Description: The function the relay channel is mapped to.
// @Values: 0:None,1:Relay 1,2:Relay 2,3:Relay 3,4:Relay 4,5:Relay 5,6:Relay 6
// @Values: 0:None,1:Relay 1,2:Relay 2,3:Relay 3,4:Relay 4,5:Relay 5,6:Relay 6,7:Ignition,8:Starter
// @User: Standard
AP_GROUPINFO_FLAGS("FUNCTION", 2, AP_Relay_Params, function, (float)Function::none, AP_PARAM_FLAG_ENABLE),

Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_Relay/AP_Relay_Params.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class AP_Relay_Params {
relay4 = 4,
relay5 = 5,
relay6 = 6,
ignition = 7, // high for on
starter = 8, // high for on
num_functions // must be the last entry
};

Expand Down

0 comments on commit 263f1f7

Please sign in to comment.