mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-24 01:33:46 +08:00
fix all codespell issues (#33194)
* bring back * remove 2020 dictionary old-commit-hash: 44c7144e1c5f5aa66596c8d240b64827148b960d
This commit is contained in:
@@ -436,7 +436,7 @@ void BinaryItemDelegate::drawSignalCell(QPainter *painter, const QStyleOptionVie
|
||||
auto item = (const BinaryViewModel::Item *)index.internalPointer();
|
||||
QColor color = sig->color;
|
||||
color.setAlpha(item->bg_color.alpha());
|
||||
// Mixing the signal colour with the Base background color to fade it
|
||||
// Mixing the signal color with the Base background color to fade it
|
||||
painter->fillRect(rc, option.palette.color(QPalette::Base));
|
||||
painter->fillRect(rc, color);
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@ def send_thread(j: PandaJungle, flock):
|
||||
i = (rk.frame*DT_CTRL) % (IGN_ON + IGN_OFF) < IGN_ON
|
||||
j.set_ignition(i)
|
||||
|
||||
snd = CAN_MSGS[rk.frame % len(CAN_MSGS)]
|
||||
snd = list(filter(lambda x: x[-1] <= 2, snd))
|
||||
send = CAN_MSGS[rk.frame % len(CAN_MSGS)]
|
||||
send = list(filter(lambda x: x[-1] <= 2, send))
|
||||
try:
|
||||
j.can_send_many(snd)
|
||||
j.can_send_many(send)
|
||||
except usb1.USBErrorTimeout:
|
||||
# timeout is fine, just means the CAN TX buffer is full
|
||||
pass
|
||||
|
||||
@@ -163,7 +163,7 @@ TEST_CASE("seek_to") {
|
||||
Replay replay(DEMO_ROUTE, {}, {}, nullptr, REPLAY_FLAG_NO_VIPC);
|
||||
|
||||
QObject::connect(&replay, &Replay::seekedTo, [&](double sec) {
|
||||
INFO("seek to " << seek_to << "s seeked to" << sec);
|
||||
INFO("seek to " << seek_to << "s sought to" << sec);
|
||||
REQUIRE(sec >= seek_to);
|
||||
loop.quit();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user