Skip to content
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

c channel frequency precision #89

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions JAERO/aerol.cpp
Original file line number Diff line number Diff line change
@@ -2161,8 +2161,8 @@ void AeroL::SendCAssignment(int k, QString decline)
int channel2=((((byte9&0x7F)<<8)&0xFF00)|(byte10&0x00FF));
double rx=(((double)channel1)*0.0025)+1510.0;
double tx=(((double)channel2)*0.0025)+1611.5;
QString receive = QString::number(rx);
QString transmit = QString::number(tx);
QString receive = QString::number(rx, 'f', 4);
QString transmit = QString::number(tx, 'f', 4);
QString beam = " Global Beam ";
if(byte7&0x80)beam=" Spot Beam ";

2 changes: 1 addition & 1 deletion JAERO/mainwindow.cpp
Original file line number Diff line number Diff line change
@@ -1281,7 +1281,7 @@ void MainWindow::CChannelAssignmentSlot(CChannelAssignmentItem &item)
.arg(upperHex(item.GESID, 2, 16, QChar('0')));
QString rx_beam = " Global Beam ";
if(item.receive_spotbeam)rx_beam=" Spot Beam ";
message += "Receive Freq: " + QString::number(item.receive_freq) + rx_beam + "Transmit " + QString::number(item.transmit_freq);
message += "Receive Freq: " + QString::number(item.receive_freq, 'f', 4) + rx_beam + "Transmit " + QString::number(item.transmit_freq, 'f', 4);

switch(item.type)
{