import can import struct import time import argparse # Function to send the target angle def send_target_angle(bus, target_angle): msg = can.Message() msg.arbitration_id = 1 # Message ID msg.is_extended_id = False msg.dlc = 5 # Message length msg.data = [ord('A')] + list(struct.pack('