Skip to content

Commit

Permalink
Removed RoverBoostVoltageActionNode, updated check_boost.ns
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed Dec 13, 2024
1 parent a5b3033 commit e632477
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 109 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ indent_size = 4
[{*.js,*.css,*.ts,*.tsx,*.jsx,*.graphql,*.ns}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
[core/**/*.js] # CouchDB design document JavaScript files get special treatment
indent_size = 4

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public static ObjectMapper registerActionNodes(ObjectMapper objectMapper) {
RoverModbusActionNode.class,
RoverLoadActionNode.class,
RoverBoostSetActionNode.class,
// RoverBoostVoltageActionNode commented out until we confirm that replacing it works as intended
// RoverBoostVoltageActionNode.class,

TracerModbusActionNode.class,
TracerLoadActionNode.class,
Expand Down
10 changes: 6 additions & 4 deletions config_templates/actions-ns/check_boost.ns
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
scope : queue {
// The expression will evaluate to either [], [true], or [false]
init-exp is_normal_voltage : eq(rover-boost-voltage(fragment=2), const(148))

act set_normal : race {
racer(roverboostvoltage(voltageraw=148, fragment="2", not=true)) : call set_normal_command
racer(roverboostvoltage(voltageraw=148, fragment="2")) : log("Boost voltage is normal!", debug=true)
racer(any : not : ref is_normal_voltage) : call set_normal_command
racer(any : ref is_normal_voltage) : log("Boost voltage is normal!", debug=true)
racer(pass) : log "Rover not found!"
}
act set_equalize : race {
racer(roverboostvoltage(voltageraw=148, fragment="2", not=true)) : log("Already equalizing", debug=true)
racer(roverboostvoltage(voltageraw=148, fragment="2")) : call set_equalize_command
racer(any : not : ref is_normal_voltage) : log("Already equalizing", debug=true)
racer(any : ref is_normal_voltage) : call set_equalize_command
racer(pass) : log "Rover not found!"
}
act set_normal_command : sendopen(
Expand Down
53 changes: 0 additions & 53 deletions config_templates/actions/check_boost.json

This file was deleted.

0 comments on commit e632477

Please sign in to comment.