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
| 00 <<< rx 1741722232.601 | |
| 1741722235.198 tx >>> 00 20 | |
| 1741722235.293 tx >>> 16 0b 0b 2c | |
| 1741722235.405 tx >>> 11 08 | |
| 01 <<< rx 1741722235.410 | |
| 1741722235.501 tx >>> 11 31 | |
| 31 31 <<< rx 1741722235.509 | |
| 1741722235.597 tx >>> 11 0a | |
| 00 00 <<< rx 1741722235.609 | |
| 1741722235.693 tx >>> 11 11 |
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
| static DISPLAY_STATIC: StaticCell< | |
| ssd1306::Ssd1306Async< | |
| ssd1306::prelude::I2CInterface< | |
| I2cDeviceWithConfig<NoopRawMutex, hal::i2c::I2c<'static, hal::mode::Async>>, | |
| >, | |
| ssd1306::size::DisplaySize128x64, | |
| ssd1306::mode::BufferedGraphicsModeAsync<ssd1306::size::DisplaySize128x64>, | |
| >, | |
| > = StaticCell::new(); |
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
| let msg = aprs::Packet::Message { | |
| destination: "AD8IZ-7".parse().unwrap(), | |
| text: "Hello, world!".into(), | |
| number: None, | |
| }; | |
| let packet = ax25::Packet { | |
| destination: "APZADZ".parse().unwrap(), | |
| source: "AD8IZ-10".parse().unwrap(), | |
| path: (&["WIDE1-1".parse().unwrap(), "WIDE2-1".parse().unwrap()] as &[_]) |
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 hashlib | |
| import os | |
| import struct | |
| class Sha1: | |
| def __init__(self): | |
| self.state = [ | |
| 0x67452301, | |
| 0xEFCDAB89, | |
| 0x98BADCFE, |
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
| let eop = | |
| frameshift::provider::CelestrakProvider::from_csv(std::fs::File::open("EOP-All.csv")?)?; | |
| println!("J2000 = {}", frameshift::time::epoch::J2000.to_tai()); | |
| println!("J2000 = {}", frameshift::time::epoch::J2000.to_tt()); | |
| println!( | |
| "J2000 = {}", | |
| frameshift::time::epoch::J2000 | |
| .to_tai() | |
| .to_utc_with(&eop) |
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
| fn main() -> anyhow::Result<()> { | |
| let lines = vec![ | |
| "ISS (ZARYA)", | |
| "1 25544U 98067A 24285.74177330 .00036177 00000-0 64514-3 0 9990", | |
| "2 25544 51.6390 98.0883 0008472 63.6655 27.1997 15.49693494476628", | |
| ]; | |
| let home = satkit::ITRFCoord::from_geodetic_deg(0.0, 0.0, 268.9); | |
| // parse TLE |
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 risky.test | |
| class LUI(risky.test.UnitTest): | |
| PROGRAM = """ | |
| lui a0, 1 | |
| one: | |
| lui a1, 0xfffff | |
| fs: |
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
| class LUI(UnitTest): | |
| PROGRAM = """ | |
| lui a0, 1 | |
| one: | |
| lui a1, 0xfffff | |
| fs: | |
| lui a2, 0xabcde | |
| letters: |
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 <stdlib.h> | |
| #include <stdbool.h> | |
| extern void busy_loop(void); | |
| extern volatile uint32_t LEDS; | |
| extern volatile struct { | |
| struct { |
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 <stdlib.h> | |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| extern void busy_loop(void); | |
| extern volatile uint32_t LEDS; | |
| extern volatile struct { |