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
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdbool.h> | |
static int _pow(int x, int n) | |
{ | |
int r = 1; | |
if(n == 0) |
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
#!/usr/bin/env python | |
import numpy as np | |
import matplotlib.pyplot as plt | |
# | |
# https://blog.csdn.net/qq_29080067/article/details/80157857 | |
# | |
# https://medium.com/geekculture/introduction-to-linear-control-of-robots-in-c-88fa935a222e | |
# | |
# https://github.com/markusbuchholz/Linear_Control_of_Robots_in_Cpp/blob/main/mass_spring_damper.cpp |
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
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index d86bd33..8899c8f 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -8,7 +8,10 @@ list(APPEND SOURCES "lvgl_tft/disp_driver.c") | |
# Include only the source file of the selected | |
# display controller. | |
-if(CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9341) | |
+ |
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
# Multicast receiver | |
# Guidance: https://stackoverflow.com/a/1794373 | |
import socket | |
import struct | |
MCAST_GRP = '224.0.0.3' | |
MCAST_PORT = 9003 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) |
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
/* | |
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |