Skip to content

Commit

Permalink
Small fixes for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Bing-Rover authored and Levi-Lesches committed Nov 30, 2023
1 parent 2a28722 commit 7eea81e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/motor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ void main() async {
await collection.init();
while (true) {
collection.can.can.sendMessage(id: 0x303, data: speed);
await Future<void>.delayed(const Duration(seconds: 1));
await Future<void>.delayed(const Duration(milliseconds: 500));
}
}
2 changes: 1 addition & 1 deletion lib/src/serial/gps.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "package:burt_network/burt_network.dart";
import "package:subsystems/subsystems.dart";

/// The port/device file to listen to the GPS on.
const serialPort = "/dev/ttyACM0";
const serialPort = "/dev/rover-gps";

/// Listens to the GPS and sends its output to the Dashboard.
///
Expand Down
2 changes: 1 addition & 1 deletion lib/src/serial/imu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "package:subsystems/subsystems.dart";
import "package:burt_network/burt_network.dart";

/// The serial port that the IMU is conncted to.
const port = "/dev/ttyACM1";
const port = "/dev/rover-imu";

extension on double {
bool isZero([double epsilon = 0.001]) => abs() < epsilon;
Expand Down

0 comments on commit 7eea81e

Please sign in to comment.