Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
29a0ae6
Initial implementation of DBC messages in subsystems
Gold872 Apr 1, 2025
a3a44b6
Updated messages and added network streaming + other fixes
Gold872 Apr 2, 2025
3bfba24
Updated messages
Gold872 Apr 6, 2025
3990353
Only send CAN commands if device is connected
Gold872 Apr 6, 2025
fb4dcf4
Reformat and simplified send()
Gold872 Apr 7, 2025
f8228f4
Fix relays and add auto restart on failure
Gold872 Apr 8, 2025
6ee4bea
Add drive swivel data decoding
Gold872 Apr 8, 2025
0573a49
Updated dart dbc generator
Gold872 Apr 15, 2025
c826e2d
Regenerated rover messages with correct factor
Gold872 Apr 16, 2025
7c7fc94
Renamed deviceId to deviceValue
Gold872 Apr 22, 2025
b2ef34c
Added arm messages
Gold872 Apr 28, 2025
27d5d68
Regenerated rover messages
Gold872 Apr 28, 2025
077de74
Add CAN devices to subsystems data message
Gold872 Apr 28, 2025
59ac1d9
Fix ranges of arm motor values
Gold872 Apr 28, 2025
0883719
Fixed sign of arm angle data
Gold872 Apr 28, 2025
81c1e39
Fixed motor move data range and boolstate decoding
Gold872 Apr 28, 2025
960744d
Increased bit count and range of arm step data
Gold872 Apr 28, 2025
bc74f37
Regenerated file with new dbc
Gold872 May 8, 2025
10fbb4e
Updated to new DBC
Gold872 May 11, 2025
560679e
Catch error if can0 is not found
Gold872 May 18, 2025
012989e
Regenerated DBC messages with new voltage length
Gold872 May 18, 2025
f7459b6
Update DBC for relays signals
Gold872 May 18, 2025
77ff2fc
Refactor to use 1 message stream + cleanup
Gold872 May 20, 2025
cbf8492
Check whether a CAN message can be sent before sending
Gold872 Jun 1, 2025
9e56d3d
Huge cleanup
Gold872 Jul 31, 2025
86b46a3
Better logging and error handling
Gold872 Aug 1, 2025
e430b04
Added support for drive motor data messages
Gold872 Aug 28, 2025
dd3531e
Regenerate DBC files updated dbc generator
Gold872 Aug 29, 2025
067ec83
Regenerate messages and update heartbeat ID assignment
Gold872 Sep 8, 2025
9c2768f
Cleanup and regenerate
Gold872 Jan 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions burt_network/lib/src/generated/arm.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import 'version.pb.dart' as $2;

export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;

export 'arm.pbenum.dart';

class ArmData extends $pb.GeneratedMessage {
factory ArmData({
$0.Coordinates? currentPosition,
Expand Down
31 changes: 31 additions & 0 deletions burt_network/lib/src/generated/arm.pbenum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,37 @@
// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

class ArmMotor extends $pb.ProtobufEnum {
static const ArmMotor ARM_MOTOR_UNDEFINED = ArmMotor._(0, _omitEnumNames ? '' : 'ARM_MOTOR_UNDEFINED');
static const ArmMotor SWIVEL = ArmMotor._(1, _omitEnumNames ? '' : 'SWIVEL');
static const ArmMotor SHOULDER = ArmMotor._(2, _omitEnumNames ? '' : 'SHOULDER');
static const ArmMotor ELBOW = ArmMotor._(3, _omitEnumNames ? '' : 'ELBOW');
static const ArmMotor WRIST = ArmMotor._(4, _omitEnumNames ? '' : 'WRIST');

static const $core.List<ArmMotor> values = <ArmMotor> [
ARM_MOTOR_UNDEFINED,
SWIVEL,
SHOULDER,
ELBOW,
WRIST,
];

static final $core.Map<$core.int, ArmMotor> _byValue = $pb.ProtobufEnum.initByValue(values);
static ArmMotor? valueOf($core.int value) => _byValue[value];

const ArmMotor._($core.int v, $core.String n) : super(v, n);
}


const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
Expand Down
17 changes: 17 additions & 0 deletions burt_network/lib/src/generated/arm.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;

@$core.Deprecated('Use armMotorDescriptor instead')
const ArmMotor$json = {
'1': 'ArmMotor',
'2': [
{'1': 'ARM_MOTOR_UNDEFINED', '2': 0},
{'1': 'SWIVEL', '2': 1},
{'1': 'SHOULDER', '2': 2},
{'1': 'ELBOW', '2': 3},
{'1': 'WRIST', '2': 4},
],
};

/// Descriptor for `ArmMotor`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List armMotorDescriptor = $convert.base64Decode(
'CghBcm1Nb3RvchIXChNBUk1fTU9UT1JfVU5ERUZJTkVEEAASCgoGU1dJVkVMEAESDAoIU0hPVU'
'xERVIQAhIJCgVFTEJPVxADEgkKBVdSSVNUEAQ=');

@$core.Deprecated('Use armDataDescriptor instead')
const ArmData$json = {
'1': 'ArmData',
Expand Down
Loading