Open wagnerdylan opened 5 years ago
Hey, I have a few questions about the write_data method. What is in the variable data_tup and when you say append it to the csv file does that just mean as a new row or is there a format that it should follow.
Just a new row. So you can open the file in append mode and just write the csv string to it. So, for example, I have altitude data like (Time
Issue has been updated for new approach.
Code for this ticket should be placed in the ground_station.py file in the src directory.
Following the UML in the uml directory of this repository, implement the GroundStationModel class. Work done on this ticket is responsible for setting the foundation for the GroundStationModel class. The code currently in the ground_station.py file can be removed or altered at the will of the assignee. The init function for the GroundStation class should generate a log_path which includes the date time in ISO 8601 format. EX: SPEXTRO_LOG_20200513T133023Z.log
Method explanation:
handle_data(self, message) - Just stub this one out, it can't be implemented yet.
write_data(self, message) - This method is used to append the raw binary message to a file specified at log_path.
Testing:
Testing can be done by writing a temporary code at the bottom of the file, this code will be eventually removed as the program becomes more mature.