Skip to content

Commit

Permalink
Update brightness in setFlashlightBrightness example (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanie-eng authored May 15, 2024
1 parent 41a27f5 commit 1106c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/flashlight/test_flashlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ To turn the back flashlight off, run:

The second way is to send a set flashlight brightness command to the executive. You can either do this by using the teleop command tab in GDS or publishing the command to the /command topic from the command line. To turn the front flashlight on, run:

rostopic pub --once /command ff_msgs/CommandStamped '{cmd_name: "setFlashlightBrightness", subsys_name: "Astrobee", args: [{data_type: 5, s: Front}, {data_type: 2, f: 100}]}'
rostopic pub --once /command ff_msgs/CommandStamped '{cmd_name: "setFlashlightBrightness", subsys_name: "Astrobee", args: [{data_type: 5, s: Front}, {data_type: 2, f: 1}]}'

To turn the front flashlight off, run:

rostopic pub --once /command ff_msgs/CommandStamped '{cmd_name: "setFlashlightBrightness", subsys_name: "Astrobee", args: [{data_type: 5, s: Front}, {data_type: 2, f: 0}]}'

To turn the back flashlight on, run:

rostopic pub --once /command ff_msgs/CommandStamped '{cmd_name: "setFlashlightBrightness", subsys_name: "Astrobee", args: [{data_type: 5, s: Back}, {data_type: 2, f: 100}]}'
rostopic pub --once /command ff_msgs/CommandStamped '{cmd_name: "setFlashlightBrightness", subsys_name: "Astrobee", args: [{data_type: 5, s: Back}, {data_type: 2, f: 1}]}'

To turn the back flashlight off, run:

Expand Down

0 comments on commit 1106c1c

Please sign in to comment.