batbot_bringup package
Subpackages
- batbot_bringup.bb_serial package
- batbot_bringup.bb_tendons package
- batbot_bringup.gui package
- batbot_bringup.sonar package
- Submodules
- batbot_bringup.sonar.bb_emitter module
ECHO_SERIAL_CMD
EchoEmitter
EchoEmitter.chirp()
EchoEmitter.connect_Serial()
EchoEmitter.connection_status()
EchoEmitter.convert_and_range_data()
EchoEmitter.disconnect_serial()
EchoEmitter.gen_chirp()
EchoEmitter.gen_sine()
EchoEmitter.get_and_convert_numpy()
EchoEmitter.get_cmd()
EchoEmitter.get_max_chirp_uint16_length()
EchoEmitter.save_chirp_info()
EchoEmitter.upload_chirp()
EchoEmitter.write_cmd()
LAST_CHIRP_DATA
hide_cursor()
show_cursor()
t_colors
- batbot_bringup.sonar.bb_listener module
- Module contents
Submodules
batbot_bringup.PinnaeController module
batbot_bringup.TendonControllerSPI-working module
batbot_bringup.bb_data module
batbot_bringup.bb_gps module
bb_gps2 Brief: this is the gps object used by the batbot, this can use NTRIP for RTK and run baseless. Author: Mason Lopez Date: 2/7/2024
Documentation on zed fp9: https://cdn.sparkfun.com/assets/f/7/4/3/5/PM-15136.pdf
finding basestations: http://www.rtk2go.com:2101/SNIP::STATUS#single
- class batbot_bringup.bb_gps.bb_gps2(serial: ~serial.serialposix.Serial = Serial<id=0x7fdac15920e0, open=False>(port=None, baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False), ntripuser: str = None, mountpoint: str = 'VTTI_SR_RTCM3', ntripserver: str = 'RTK2go.com', ntripport: int = 2101, ntrippassword: str = 'none')
Bases:
object
- check_for_ubx_ack(msg_to_ack: str) bool
- connect_Serial(serial: Serial)
- connection_status() bool
- disconnect_serial()
- get_num_coodinates() int
- run(dir: str = '', do_print: bool = False)
- save_gpx_data() None
- set_message_rate(refresh_rate_ms: uint16) bool
- set_serial_str() bool
- set_ubx_only_NAV_PVT(enable: bool) bool
- set_ubx_only_output(enable: bool) bool
- set_ubx_rtcm(enable: bool) bool
- stop()
batbot_bringup.bb_log module
- class batbot_bringup.bb_log.CustomFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)
Bases:
Formatter
- FORMATS = {10: '\x1b[38;20m[%(asctime)s - %(levelname)s]:\t%(message)s\x1b[0m', 20: '\x1b[0;37m[%(asctime)s - %(levelname)s]:\t%(message)s\x1b[0m', 30: '\x1b[33;20m[%(asctime)s - %(levelname)s]:\t%(message)s\x1b[0m', 40: '\x1b[31;20m[%(asctime)s - %(levelname)s]:\t%(message)s\x1b[0m', 50: '\x1b[31;1m[%(asctime)s - %(levelname)s]:\t%(message)s\x1b[0m'}
- bold_red = '\x1b[31;1m'
- dark_purple = '\x1b[0;35m'
- format(record)
Format the specified record as text.
The record’s attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message.
- grey = '\x1b[38;20m'
- grey_light = '\x1b[0;37m'
- red = '\x1b[31;20m'
- reset = '\x1b[0m'
- yellow = '\x1b[33;20m'
- batbot_bringup.bb_log.get_log()
batbot_bringup.bb_repl module
batbot_bringup.bb_utils module
- batbot_bringup.bb_utils.bin2dec(bin_data)
- batbot_bringup.bb_utils.get_timestamp_now()
- batbot_bringup.bb_utils.hword_to_bytes(word)
- batbot_bringup.bb_utils.list2bytearr(lst, order)
- batbot_bringup.bb_utils.search_comports(serial_numbers)
- batbot_bringup.bb_utils.split_word(word)