This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from flask import Response, Flask | |
from threading import Thread, Lock | |
global video_frame | |
video_frame = None | |
global thread_lock | |
thread_lock = Lock() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import array | |
import time | |
import struct | |
import logging | |
from jetracer.nvidia_racecar import NvidiaRacecar | |
import time | |
STEERING_OFFSET = 0.1 | |
STEERING_GAIN = -0.35 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jetracer.nvidia_racecar import NvidiaRacecar | |
import time | |
STEERING_OFFSET = 0.1 | |
STEERING_GAIN = -0.35 | |
THROTTLE_GAIN = -0.2 | |
def main(): | |
car = NvidiaRacecar() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jetracer.nvidia_racecar import NvidiaRacecar | |
import numpy as np | |
import time | |
STEERING_OFFSET = 0.1 | |
STEERING_GAIN = -0.35 | |
def main(): | |
car = NvidiaRacecar() |