Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge github.com:schwehr/libais

  • Loading branch information...
commit 3e9bc22a203a2a588dc3e91f72e98615b17d2a83 2 parents 5f364d8 + eb3caee
@schwehr authored
Showing with 4 additions and 3 deletions.
  1. +1 −0  ais1_2_3.cpp
  2. +1 −1  ais5.cpp
  3. +2 −2 ais_py.cpp
View
1  ais1_2_3.cpp
@@ -7,6 +7,7 @@
#include <string>
#include <cassert>
#include <cmath>
+#include <cstdlib>
using namespace std;
View
2  ais5.cpp
@@ -30,7 +30,7 @@ Ais5::Ais5(const char *nmea_payload) {
name = ais_str(bs, 112, 120);
- type_and_cargo = ubits(bs, 120, 8);
+ type_and_cargo = ubits(bs, 232, 8);
dim_a = ubits(bs, 240, 9);
dim_b = ubits(bs, 249, 9);
dim_c = ubits(bs, 258, 6);
View
4 ais_py.cpp
@@ -378,7 +378,7 @@ ais8_1_22_append_pydict(const char *nmea_payload, PyObject *dict) {
switch(msg.sub_areas[i]->getType()) {
case AIS8_001_22_SHAPE_CIRCLE: // or point
{
- cout << i << ": POINT or CIRCLE\n";
+ // cout << i << ": POINT or CIRCLE\n";
PyObject *sub_area = PyDict_New();
//DictSafeSetItem(sub_area,"area_type",msg.sub_areas[i]->getType());
// FIX: could easily optimize to have only one copy of each string around at a Python Obj
@@ -652,7 +652,7 @@ ais8_to_pydict(const char *nmea_payload) {
break;
default:
DictSafeSetItem(dict,"parsed",false);
- cout << "Ais8: can't handle dac " << msg.dac << endl;
+ // cout << "Ais8: can't handle dac " << msg.dac << endl;
}
Please sign in to comment.
Something went wrong with that request. Please try again.