We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i have this code
BeanWriterProcessor<CsvRawDataItemVor> writerProcessor = new BeanWriterProcessor<>(CsvRawDataItemVor.class); writerProcessor.convertType(Double.class, Conversions.formatToNumber("#.##########")); writerProcessor.convertType(Float.class, Conversions.formatToNumber("#.##########")); CsvWriterSettings writerSettings = new CsvWriterSettings(); writerSettings.setRowWriterProcessor(writerProcessor); writerSettings.setHeaders(headers); CsvWriter beanWriter = new CsvWriter(writer, writerSettings); beanWriter.writeHeaders(); csvRawDataItemVor.forEach(beanWriter::processRecord);
but the conversion is not applied I leave also the class CsvRawDataItemVor
public class CsvRawDataItemVor { ////////// METADATA ////////// @Parsed(field = "latitude") private Double latitude; @Parsed(field = "longitude") private Double longitude; @Parsed(field = "hmsl") private Double altitude; @Parsed(field = "posFlag") private String fixState; @Parsed(field = "position") //This field is calculated on the app, private Float position; // so the first time the file is read, its empty @Parsed(field = "distance_to_vor") private Float distanceToVor; @Parsed(field = "timestamp") private Double timestamp; @Parsed(field = "battery") private Double rxBattery; // GENERAL @Parsed(field = "carrier_frequency") private Float carrierFrequency; @Parsed(field = "bearing") private Float bearing; @Parsed(field = "calculated_bearing") private Float geoBearing; @Parsed(field = "field_strength") private Float fieldStrength; @Parsed(field = "bearing_error") private Float bearingError; @Parsed(field = "bearing_low_pass_filter") private Float bearingLowPassFilter; @Parsed(field = "bearing_high_pass_filter") private Float bearingHighPassFilter; // AM @Parsed(field = "f30hz_mod_depth") private Float f30HzModDepth; @Parsed(field = "f30hz_mod_frequency") private Float f30HzModFrequency; // FM @Parsed(field = "f9960hz_mod_depth") private Float f9960HzModDepth; @Parsed(field = "f9960hz_subcarrier_frequency") private Float f9960HzSubcarrierFrequency; @Parsed(field = "f9960hz_30hz_mod_frequency") private Float f9960Hz30HzModFrequency; @Parsed(field = "f9960hz_deviation") private Float f9960HzDeviation; @Parsed(field = "f9960hz_frequency_deviation") private Float f9960HzFrequencyDeviation; ///////////// METHODS WITH CALCULATIONS ///////////////// //////////////// GETTERS AND SETTERS ////////////// public Double getLatitude() { return latitude; } public void setLatitude(Double latitude) { this.latitude = latitude; } public Double getLongitude() { return longitude; } public void setLongitude(Double longitude) { this.longitude = longitude; } public Double getAltitude() { return altitude; } public void setAltitude(Double altitude) { this.altitude = altitude; } public String getFixState() { return fixState; } public void setFixState(String fixState) { this.fixState = fixState; } public Double getTimestamp() { return timestamp; } public void setTimestamp(Double timestamp) { this.timestamp = timestamp; } public Double getRxBattery() { return rxBattery; } public void setRxBattery(Double rxBattery) { this.rxBattery = rxBattery; } public Float getPosition() { return position; } public void setPosition(Float position) { this.position = position; } public Float getCarrierFrequency() { return carrierFrequency; } public void setCarrierFrequency(Float carrierFrequency) { this.carrierFrequency = carrierFrequency; } public Float getDistanceToVor() { return distanceToVor; } public void setDistanceToVor(Float distanceToVor) { this.distanceToVor = distanceToVor; } public Float getGeoBearing() { return geoBearing; } public void setGeoBearing(Float geoBearing) { this.geoBearing = geoBearing; } public Float getBearing() { return bearing; } public void setBearing(Float bearing) { this.bearing = bearing; } public Float getFieldStrength() { return fieldStrength; } public void setFieldStrength(Float fieldStrength) { this.fieldStrength = fieldStrength; } public Float getBearingError() { return bearingError; } public void setBearingError(Float bearingError) { this.bearingError = bearingError; } public Float getBearingLowPassFilter() { return bearingLowPassFilter; } public void setBearingLowPassFilter(Float bearingLowPassFilter) { this.bearingLowPassFilter = bearingLowPassFilter; } public Float getBearingHighPassFilter() { return bearingHighPassFilter; } public void setBearingHighPassFilter(Float bearingHighPassFilter) { this.bearingHighPassFilter = bearingHighPassFilter; } public Float getF30HzModDepth() { return f30HzModDepth; } public void setF30HzModDepth(Float f30HzModDepth) { this.f30HzModDepth = f30HzModDepth; } public Float getF30HzModFrequency() { return f30HzModFrequency; } public void setF30HzModFrequency(Float f30HzModFrequency) { this.f30HzModFrequency = f30HzModFrequency; } public Float getF9960HzModDepth() { return f9960HzModDepth; } public void setF9960HzModDepth(Float f9960HzModDepth) { this.f9960HzModDepth = f9960HzModDepth; } public Float getF9960HzSubcarrierFrequency() { return f9960HzSubcarrierFrequency; } public void setF9960HzSubcarrierFrequency(Float f9960HzSubcarrierFrequency) { this.f9960HzSubcarrierFrequency = f9960HzSubcarrierFrequency; } public Float getF9960Hz30HzModFrequency() { return f9960Hz30HzModFrequency; } public void setF9960Hz30HzModFrequency(Float f9960Hz30HzModFrequency) { this.f9960Hz30HzModFrequency = f9960Hz30HzModFrequency; } public Float getF9960HzDeviation() { return f9960HzDeviation; } public void setF9960HzDeviation(Float f9960HzDeviation) { this.f9960HzDeviation = f9960HzDeviation; } public Float getF9960HzFrequencyDeviation() { return f9960HzFrequencyDeviation; } public void setF9960HzFrequencyDeviation(Float f9960HzFrequencyDeviation) { this.f9960HzFrequencyDeviation = f9960HzFrequencyDeviation; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i have this code
but the conversion is not applied I leave also the class CsvRawDataItemVor
The text was updated successfully, but these errors were encountered: