-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various typos #2
Changes from all commits
ee32bbd
352ecfc
9de1c7f
43d25a5
aa42475
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
// File: hx870dat.bt | ||
// Authors: Christiane Ruetten | ||
// E-Mail: [email protected] | ||
// Version: 0.1a | ||
// Version: 0.1.1a | ||
// Purpose: Parsing Standard Horizon HX870 DAT files | ||
// Category: HF Radio | ||
// File Mask: *.dat | ||
// ID Bytes: 03 67 01 00 00 00 00 00 | ||
// ID Bytes: 03 67 | ||
// History: Based on https://johannessen.github.io/hx870/ | ||
//------------------------------------------------ | ||
|
||
|
@@ -21,7 +21,7 @@ BigEndian(); | |
|
||
// Magic Bytes ----------------------------------- | ||
FSeek(0x0000); | ||
uint16 MagicPrefix <bgcolor=0xff00cc00>; // always 0x0361 (871) | ||
uint16 MagicPrefix <bgcolor=0xff00cc00>; // always 0x0367 (871) | ||
|
||
|
||
// 0002 Radio Status ----------------------------- | ||
|
@@ -56,7 +56,7 @@ enum <ubyte> _MultiWatch { MW_DUAL, MW_TRIPLE }; | |
enum <ubyte> _ScanType { ST_MEMORY, ST_PRIORITY }; | ||
enum <ubyte> _EmergencyLED { EL_CONTINUOUS, EL_SOS, EL_BLINK1, EL_BLINK2, EL_BLINK3 }; | ||
enum <ubyte> _WaterHazardLED { WH_OFF, WH_ON, WH_ON_POWER_ON }; | ||
enum <ubyte> _Lamp { L_OFF, L_3S, L_5S, L_10S, L_20S, L_30S, L_CONTINUOUS }; | ||
enum <ubyte> _Lamp { L_OFF, L_3S, L_5S, L_10S, L_CONTINUOUS, L_20S, L_30S }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this was one of the places where I found an error in your data, and I double checked in my device that the enum order is indeed L_CONTINUOUS last. Can you verify this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know I double-checked this before making this change in your template. I’ve just checked again just to be safe, and my radio is currently set to 30 s, which is coded as So, in this particular case, the error does appear to be in your data. (I know I made errors in other fields, which your template helped me to correct.) FWIW, I believe the first HX870 firmware versions didn’t offer the 20 s and 30 s settings. That’s why they’re at the end: They were added later than the “continuous” setting was. But I don’t seem to have a source to back this up, so it may just be conjecture on my part. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for checking. |
||
enum <ubyte> _AFPitchCONT { A_NORMAL, A_HIGH_LOW_CUT, A_HIGH_LOW_BOOST, A_LOW_BOOST, A_HIGH_BOOST }; | ||
enum <ubyte> _BatterySave { BS_OFF, BS_50, BS_70, BS_80, BS_90 }; | ||
enum <ubyte> _VOXDelayTime { V_0_5S, V_1S, V_1_5S, V_2S, V_3S }; | ||
|
@@ -94,9 +94,9 @@ struct _RadioConfiguration { // start: 0020 | |
// Channels Setup continued | ||
_OffOn VOX; | ||
ubyte VOXLevel; // 0..4 | ||
ubyte _unknown0044 <format=hex, bgcolor=cBlack>; // always 00 | ||
_VOXDelayTime VOXDelayTime; | ||
_OffOn NoiseCancelRx; | ||
ubyte NoiseCancelRxLevel; // 0..3 | ||
_OffOn NoiseCancelTx; | ||
ubyte _unknown0046 <format=hex, bgcolor=cBlack>; // always 00 | ||
ubyte _unused0047[3] <format=hex>; // always ff | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,8 +43,8 @@ | |
'hx890', 'hx890e', 'firmware', 'flashing', 'mmsi', 'atis'], | ||
author='Christiane Ruetten', | ||
author_email='[email protected]', | ||
url='https://github.com/cr/pyhx870', | ||
download_url='https://github.com/cr/pyhx870/archive/master.tar.gz', | ||
url='https://github.com/cr/hx870', | ||
download_url='https://github.com/cr/hx870/archive/master.tar.gz', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! I have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That I can’t tell you. But I’m afraid your repository is called |
||
license='GPLv3', | ||
packages=find_packages(exclude=["tests"]), | ||
include_package_data=True, # See MANIFEST.in | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should leave the terminology at "dump / flash". It's a somewhat established standard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I figured.
The
convert.py
script has “usage” documentation for a mode calleddump
, but a part of your implementation in fact expectsextract
. Clearly a typo. This change fixes that in favour ofdump
.(Not sure if perhaps
convert.py
is no longer necessary and should be removed entirely under #14.)