Skip to content

Commit

Permalink
regenerate all
Browse files Browse the repository at this point in the history
  • Loading branch information
woodfell committed Nov 21, 2023
1 parent ef6160c commit c09e73e
Show file tree
Hide file tree
Showing 145 changed files with 59,155 additions and 1,352 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class Testauto_check_sbp_bootload_MsgBootloaderHandshakeReq0
uint8_t encoded_frame_[0 + 8] = {
85, 179, 0, 136, 247, 0, 65, 216,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_bootload_MsgBootloaderHandshakeReq0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_bootload_MsgNapDeviceDnaReq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class Testauto_check_sbp_bootload_MsgNapDeviceDnaReq0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 222, 0, 128, 50, 0, 231, 160,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_bootload_MsgNapDeviceDnaReq0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_flash_MsgStmUniqueIdReq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class Testauto_check_sbp_flash_MsgStmUniqueIdReq0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 232, 0, 195, 4, 0, 66, 138,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_flash_MsgStmUniqueIdReq0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_piksi_MsgAlmanac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class Testauto_check_sbp_piksi_MsgAlmanac0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 105, 0, 108, 138, 0, 249, 171,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_piksi_MsgAlmanac0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_piksi_MsgCwResults.cc
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class Testauto_check_sbp_piksi_MsgCwResults0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 192, 0, 99, 246, 0, 228, 72,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_piksi_MsgCwResults0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_piksi_MsgCwStart.cc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class Testauto_check_sbp_piksi_MsgCwStart0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 193, 0, 30, 179, 0, 213, 138,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_piksi_MsgCwStart0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_piksi_MsgInitBaseDep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class Testauto_check_sbp_piksi_MsgInitBaseDep0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 35, 0, 184, 41, 0, 70, 13,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_piksi_MsgInitBaseDep0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_piksi_MsgNetworkStateReq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class Testauto_check_sbp_piksi_MsgNetworkStateReq0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 186, 0, 83, 62, 0, 148, 73,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_piksi_MsgNetworkStateReq0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_piksi_MsgResetDep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class Testauto_check_sbp_piksi_MsgResetDep0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 178, 0, 64, 11, 0, 234, 171,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_piksi_MsgResetDep0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_piksi_MsgSetTime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class Testauto_check_sbp_piksi_MsgSetTime0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 104, 0, 21, 170, 0, 215, 65,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_piksi_MsgSetTime0, EncodedLen) {
Expand Down
2 changes: 1 addition & 1 deletion c/test/cpp/auto_check_sbp_settings_MsgSettingsSave.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class Testauto_check_sbp_settings_MsgSettingsSave0 : public ::testing::Test {
uint8_t encoded_frame_[0 + 8] = {
85, 161, 0, 162, 224, 0, 123, 67,
};
uint8_t encoded_payload_[0] = {};
uint8_t encoded_payload_[1] = {};
};

TEST_F(Testauto_check_sbp_settings_MsgSettingsSave0, EncodedLen) {
Expand Down
Binary file modified docs/sbp.pdf
Binary file not shown.
65 changes: 65 additions & 0 deletions java/test/auto_check_sbp_acquisition_MsgAcqResultTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/* Copyright (C) 2015-2022 Swift Navigation Inc.
* Contact: https://support.swiftnav.com
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/
package com.swiftnav.sbp.test;

// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResult.yaml
// by generate.py. Do not modify by hand!


import com.swiftnav.sbp.SBPMessage;
import com.swiftnav.sbp.acquisition.MsgAcqResult;
import java.math.BigInteger;
import org.json.JSONObject;
import org.junit.Test;

public class auto_check_sbp_acquisition_MsgAcqResultTest {

public static boolean debug = false;
private static final double DELTA = 1e-15;

@Test
public void test1() throws Throwable {
if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultTest.test1");
byte[] payload =
new byte[] {
(byte) 0, (byte) 0, (byte) 104, (byte) 65, (byte) 102, (byte) 102, (byte) 144,
(byte) 66, (byte) 205, (byte) 196, (byte) 0, (byte) 70, (byte) 8, (byte) 0,
};
SBPMessage sbp = new SBPMessage(0x04c3, 0x2f, payload);
MsgAcqResult msg = new MsgAcqResult(sbp);
JSONObject json = msg.toJSON();
Number value;
Number expected;
org.junit.Assert.assertEquals(msg.cf, 8.24120019531250000e+03, DELTA);
org.junit.Assert.assertEquals(msg.cn0, 1.45000000000000000e+01, DELTA);
org.junit.Assert.assertEquals(msg.cp, 7.21999969482421875e+01, DELTA);
value = msg.sid.code;
if (value instanceof BigInteger) {
org.junit.Assert.assertTrue(
"'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L)));
} else {
value = value.longValue();
expected = 0L;
org.junit.Assert.assertEquals(value, expected);
}
value = msg.sid.sat;
if (value instanceof BigInteger) {
org.junit.Assert.assertTrue(
"'" + msg.sid.sat + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L)));
} else {
value = value.longValue();
expected = 8L;
org.junit.Assert.assertEquals(value, expected);
}

org.junit.Assert.assertNotEquals("", msg.getFriendlyName());
}
}
Loading

0 comments on commit c09e73e

Please sign in to comment.