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
$ ros2 launch rplidar_ros test_rplidar.launch.py | |
[INFO] [launch]: All log files can be found below /home/${USER}/.ros/log/2020-12-10-10-12-52-180891-ubcin-4782 | |
[INFO] [launch]: Default logging verbosity is set to INFO | |
/opt/ros/foxy/share/rplidar_ros/launch/test_rplidar.launch.py:7: UserWarning: The parameter 'node_executable' is deprecated, use 'executable' instead | |
Node( | |
/opt/ros/foxy/share/rplidar_ros/launch/test_rplidar.launch.py:7: UserWarning: The parameter 'node_name' is deprecated, use 'name' instead | |
Node( | |
/opt/ros/foxy/share/rplidar_ros/launch/test_rplidar.launch.py:20: UserWarning: The parameter 'node_executable' is deprecated, use 'executable' instead | |
Node( | |
/opt/ros/foxy/share/rplidar_ros/launch/test_rplidar.launch.py:20: UserWarning: The parameter 'node_name' is deprecated, use 'name' instead |
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
# dmesg | grep ecap | |
[ 2.712243] DMAR: dmar0: reg_base_addr cfffe000 ver 1:0 cap c90780106f0462 ecap f0207e | |
----------------------------------------------------------------------------- | |
# dmesg | grep DMAR | |
[ 0.008188] ACPI: DMAR 0x00000000C762FE80 0001AA (v01 HP ProLiant 00000001 \xd2? 0000162E) | |
[ 0.732733] DMAR: IOMMU enabled | |
[ 1.387172] DMAR-IR: This system BIOS has enabled interrupt remapping | |
[ 2.712222] DMAR: Host address width 39 | |
[ 2.712223] DMAR: DRHD base: 0x000000cfffe000 flags: 0x1 | |
[ 2.712243] DMAR: dmar0: reg_base_addr cfffe000 ver 1:0 cap c90780106f0462 ecap f0207e |
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
/* | |
write_to_end_log() takes an int argument because this **WILL** run until the battery | |
expires, and the machine shuts down. Because of this, we want to make sure we don't | |
lose data because it was trying to write to a file during power failure. This is for | |
testing the RPi's battery consumption to get real-world data. It's MEANT to go until | |
battery failure, and this is only for testing purposes. Therefore, we will write to | |
two files, and alternate between writing to them, just in case the power should fail | |
DURING the writing process. We only need to know the startup time and the time of the | |
last file write, so we keep one startup-log file, and two end-log files, just in case. | |
*/ |
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
This little app is meant to be run from your current working directory. | |
Output looks like this, if you compile and drop the bin in your user's bin folder: | |
[email protected] [~]# tard | |
Displaying contents of current directory: | |
/home/[user]: | |
file1.txt dir1 file2.txt dir2 file3.txt | |
file4.txt dir3 file5.txt dir4 file6.txt |
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
/* DHT library | |
MIT license | |
written by Adafruit Industries | |
*/ | |
#include "DHT.h" | |
DHT::DHT(uint8_t pin, uint8_t type, uint8_t count) { | |
_pin = pin; |
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 "DHT.h" | |
#include "U8glib.h" | |
#define DHTPIN 5 // data pin for DHT 22 | |
#define DHTTYPE DHT22 // Identifier from library. Will not work without this! | |
DHT dht(DHTPIN, DHTTYPE); | |
U8GLIB_ST7920_128X64_4X u8g(13, 11, 10); // SPI Com: SCK = en = 18, MOSI = rw = 16, CS = di = 17 | |
void draw() |
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
/* This is a simple test, designed to make sure the MEGA 2560 is talking to your GPS EM-506 unit. | |
For this program, we are assuming you're using a MEGA 2560 and the "naked GPS" breakout board with | |
a bi-directional level shifter to interface the 3.3V pins of the GPS with the 5V pins of the MEGA. | |
Wiring should be done as follows: | |
GPS Pin 1: GND | |
GPS Pin 2: VCC +5V (this is not a mistake. The GPS unit itself has a voltage regulator that can handle 5V, | |
but the serial pins (TX RX) must be at 3.3V) | |
GPS Pin 3: RX pin (goes to TX1 Digital Pin 18 on MEGA via level shifter) | |
GPS Pin 4: TX pin (goes to RX1 Digital Pin 19 on MEGA via level shifter) | |
GPS Pin 5: GND |
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
---------------New Test------------------ | |
2000/0/0 1:36:24 | |
LAT: 47.3031082 | |
LON: -122.5635375 | |
SAT: 3 | |
PREC: 560 | |
Difference in LAT = 7.1787147 | |
Difference in LON = 34.2702026 | |
2014/12/25 1:36:25 |
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
---------------New Test------------------ | |
2014/12/26/0:59:20,47.3031463,-122.5636596,10,90 | |
2014/12/26/0:59:21,47.3031463,-122.5636596,10,90 | |
2014/12/26/0:59:22,47.3031463,-122.5636596,10,90 | |
2014/12/26/0:59:24,47.3031463,-122.5636596,10,90 | |
2014/12/26/0:59:25,47.3031463,-122.5636596,10,90 | |
2014/12/26/0:59:26,47.3031463,-122.5636596,10,90 | |
2014/12/26/0:59:28,47.3031463,-122.5636596,10,90 | |
2014/12/26/0:59:29,47.3031463,-122.5636596,10,90 | |
2014/12/26/0:59:31,47.3031501,-122.5636444,10,90 |
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 <iostream> | |
#include <fstream> | |
#include <string> | |
#include <cstdlib> | |
using namespace std; | |
void loadfile(); | |
void sortGPS(); | |
void store(); |
NewerOlder