commit | 5125e08e9d3fc984551b8906043f44f96cb4d55a | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin@peloton-tech.com> | Sat Apr 18 22:56:04 2015 -0700 |
committer | Austin Schuh <austin@peloton-tech.com> | Sat Apr 18 22:56:04 2015 -0700 |
tree | 4bd2a793b94a543eef0c04c65acf6067d9ef35d1 | |
parent | e3e561b03ed223e7cb1fd7ce2d1db988bde38f53 [diff] [blame] |
Send out 0 for the gyro while zeroing. Change-Id: I118cc6214a53bdb8b302494090544152179188b8
diff --git a/frc971/wpilib/gyro_sender.cc b/frc971/wpilib/gyro_sender.cc index 6c7ca3f..d3b9500 100644 --- a/frc971/wpilib/gyro_sender.cc +++ b/frc971/wpilib/gyro_sender.cc
@@ -108,6 +108,8 @@ { message->angle = new_angle; LOG_STRUCT(DEBUG, "collected while zeroing", *message); + message->angle = 0.0; + message.Send(); } zeroing_data[zeroing_index] = new_angle; ++zeroing_index;