commit
10bd49a71a
12
.gitattributes
vendored
Normal file
12
.gitattributes
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Set the default behavior, in case people don't have core.autocrlf set.
|
||||
* text=auto whitespace=trailing-space
|
||||
|
||||
# Explicitly declare text files you want to always be normalized and converted
|
||||
# to native line endings on checkout.
|
||||
*.c text
|
||||
*.h text
|
||||
*.java text
|
||||
|
||||
# Denote all files that are truly binary and should not be modified.
|
||||
*.png binary
|
||||
*.jpg binary
|
|
@ -79,12 +79,12 @@ public class ViewRSSI extends JPanel{
|
|||
// Draw the light grey channels from 11 to 26
|
||||
double xpos = 10;
|
||||
for(int i=4;i<TOTAL-4;i++){
|
||||
if (i==4+5*(INTERFERED_CHANNEL-11)) g.setColor(Color.cyan);
|
||||
else g.setColor(Color.lightGray);
|
||||
g.fillRect((int) (xpos+i*sSpacing), 0, (int) (sSpacing*3), h-MARGIN_BOTTOM);
|
||||
i = i + 4;
|
||||
g.setColor(Color.blue);
|
||||
g.drawString(String.valueOf(((i-8)/5)+11), (int) (xpos+(i-4)*sSpacing), MARGIN_TOP);
|
||||
if (i==4+5*(INTERFERED_CHANNEL-11)) g.setColor(Color.cyan);
|
||||
else g.setColor(Color.lightGray);
|
||||
g.fillRect((int) (xpos+i*sSpacing), 0, (int) (sSpacing*3), h-MARGIN_BOTTOM);
|
||||
i = i + 4;
|
||||
g.setColor(Color.blue);
|
||||
g.drawString(String.valueOf(((i-8)/5)+11), (int) (xpos+(i-4)*sSpacing), MARGIN_TOP);
|
||||
}
|
||||
g.drawString(String.valueOf("Channel"), (int) (w-MARGIN_RIGHT+20), MARGIN_TOP);
|
||||
|
||||
|
@ -92,13 +92,13 @@ public class ViewRSSI extends JPanel{
|
|||
int base_dBm = -100; // The bottom corresponds to -100 dBm
|
||||
int ytics = 10; // How many tics on the y-axis
|
||||
for(int i=-ytics;i<=0;i++){
|
||||
g.setColor(Color.red);
|
||||
g.drawString(String.valueOf(((ytics+i)*(base_dBm/ytics))+"dBm"), (int) (w-MARGIN_RIGHT+20), (int) (h+i*(h/ytics))-MARGIN_BOTTOM);
|
||||
// Dashed line for the ytics
|
||||
final float dash1[] = {10.0f};
|
||||
g.setColor(Color.red);
|
||||
g.drawString(String.valueOf(((ytics+i)*(base_dBm/ytics))+"dBm"), (int) (w-MARGIN_RIGHT+20), (int) (h+i*(h/ytics))-MARGIN_BOTTOM);
|
||||
// Dashed line for the ytics
|
||||
final float dash1[] = {10.0f};
|
||||
final BasicStroke dashed = new BasicStroke(1.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10.0f, dash1, 0.0f);
|
||||
g2.setStroke(dashed);
|
||||
g2.drawLine(0, (int) (h+i*(h/ytics))-MARGIN_BOTTOM, (int) (w-MARGIN_RIGHT+7), (int) (h+i*(h/ytics))-MARGIN_BOTTOM);
|
||||
g2.setStroke(dashed);
|
||||
g2.drawLine(0, (int) (h+i*(h/ytics))-MARGIN_BOTTOM, (int) (w-MARGIN_RIGHT+7), (int) (h+i*(h/ytics))-MARGIN_BOTTOM);
|
||||
}
|
||||
|
||||
// Write the x-axis with MHz
|
||||
|
|
|
@ -1195,4 +1195,3 @@ void halLcdScrollLine(int Line)
|
|||
for (i = Row; i < Row + FONT_HEIGHT; i++)
|
||||
halLcdScrollRow(i);
|
||||
}
|
||||
|
||||
|
|
|
@ -95,16 +95,16 @@ public class CC2520Radio extends Radio implements CustomDataRadio {
|
|||
|
||||
if (len == expLen) {
|
||||
/*logger.debug("----- CC2520 CUSTOM DATA TRANSMITTED -----");*/
|
||||
len -= 4; /* preamble */
|
||||
len -= 1; /* synch */
|
||||
len -= radio.getFooterLength(); /* footer */
|
||||
final byte[] packetdata = new byte[len];
|
||||
System.arraycopy(buffer, 4+1, packetdata, 0, len);
|
||||
lastOutgoingPacket = new RadioPacket() {
|
||||
public byte[] getPacketData() {
|
||||
return packetdata;
|
||||
}
|
||||
};
|
||||
len -= 4; /* preamble */
|
||||
len -= 1; /* synch */
|
||||
len -= radio.getFooterLength(); /* footer */
|
||||
final byte[] packetdata = new byte[len];
|
||||
System.arraycopy(buffer, 4+1, packetdata, 0, len);
|
||||
lastOutgoingPacket = new RadioPacket() {
|
||||
public byte[] getPacketData() {
|
||||
return packetdata;
|
||||
}
|
||||
};
|
||||
|
||||
/*logger.debug("----- CC2520 PACKET TRANSMITTED -----");*/
|
||||
setChanged();
|
||||
|
|
|
@ -11,4 +11,3 @@ GETTING_STARTED = \
|
|||
<b>Getting started</b><br>\
|
||||
<br>\
|
||||
<br><i>F1:</i> Toggle quick help</i>
|
||||
|
||||
|
|
|
@ -920,4 +920,3 @@ FT_STATUS WINAPI FT_Reload(
|
|||
|
||||
|
||||
#endif /* FTD2XX_H */
|
||||
|
||||
|
|
Loading…
Reference in a new issue