mirror of
https://github.com/ajouatom/openpilot.git
synced 2026-02-18 21:13:56 +08:00
* Update carrot_functions.py * fix.. atc.. * TR16 model. * fix.. atc * Adjust interpolation value for t_follow calculation * fix safeMode.. * fix safeMode2 * fix.. v_cruise * model_turn_speed.. * fix.. * fix.. * fix.. cruise.py * fix.. modelTurn.. * fix stopped car safe mode. * model turn 120% * remove model turn speed.. * paramsd... * Revert "remove model turn speed.." This reverts commit564e9dd609. * model_turn_speed... 120 -> 115% * starting achange cost 30 -> 10 * fix.. * aChangeCostStarting * fix.. * gwm v7 * Adjust traffic stop distance parameter * Update carrot_functions.py * update gwm 250929 * trafficStopDistance adjust * localizer_roll_std * scc13 * fix... * fix.. scc13 * scc14 * bypass scc13 * fix scc13 * TheCoolPeople's Model * North Nevada Model * Revert "model_turn_speed... 120 -> 115%" This reverts commite842a7e99f. * Reapply "remove model turn speed.." This reverts commit544ac16811. * for c3x lite (#218) add hardware c3x lite * NNV(North Nevada) v2 * fix.. * Nuggets In Dijon Model * toyota accel pid long * for c3xlite fix (#219) * LatSmoothSec * Revert "Reapply "remove model turn speed.."" This reverts commit2c10aae495. * apply livePose * releases 251017 --------- Co-authored-by: 「 crwusiz 」 <43285072+crwusiz@users.noreply.github.com>
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
from cereal import messaging
|
|
|
|
|
|
LOCATION1 = (32.7174, -117.16277)
|
|
LOCATION2 = (32.7558, -117.2037)
|
|
|
|
LLK_DECIMATION = 10
|
|
RENDER_FRAMES = 15
|
|
DEFAULT_ITERATIONS = RENDER_FRAMES * LLK_DECIMATION
|
|
|
|
|
|
def generate_liveLocationKalman(location=LOCATION1):
|
|
msg = messaging.new_message('liveLocationKalman')
|
|
msg.liveLocationKalman.positionGeodetic = {'value': [*location, 0], 'std': [0., 0., 0.], 'valid': True}
|
|
msg.liveLocationKalman.positionECEF = {'value': [0., 0., 0.], 'std': [0., 0., 0.], 'valid': True}
|
|
msg.liveLocationKalman.calibratedOrientationNED = {'value': [0., 0., 0.], 'std': [0., 0., 0.], 'valid': True}
|
|
msg.liveLocationKalman.velocityCalibrated = {'value': [0., 0., 0.], 'std': [0., 0., 0.], 'valid': True}
|
|
msg.liveLocationKalman.status = 'valid'
|
|
msg.liveLocationKalman.gpsOK = True
|
|
return msg
|
|
|
|
|
|
def generate_livePose():
|
|
msg = messaging.new_message('livePose')
|
|
meas = {'x': 0.0, 'y': 0.0, 'z': 0.0, 'xStd': 0.0, 'yStd': 0.0, 'zStd': 0.0, 'valid': True}
|
|
msg.livePose.orientationNED = meas
|
|
msg.livePose.velocityDevice = meas
|
|
msg.livePose.angularVelocityDevice = meas
|
|
msg.livePose.accelerationDevice = meas
|
|
msg.livePose.inputsOK = True
|
|
msg.livePose.posenetOK = True
|
|
msg.livePose.sensorsOK = True
|
|
return msg
|