Skip to content
This repository was archived by the owner on Feb 24, 2022. It is now read-only.

Wrote IDataLogger header file#89

Open
auskiwi wants to merge 4 commits into
masterfrom
interfaces
Open

Wrote IDataLogger header file#89
auskiwi wants to merge 4 commits into
masterfrom
interfaces

Conversation

@auskiwi
Copy link
Copy Markdown

@auskiwi auskiwi commented Apr 22, 2021

No description provided.

Copy link
Copy Markdown
Collaborator

@Harrison-O Harrison-O left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good first attempt but needs some touch ups.
Please go over the comments and make changes.

/**
* @author Jarod Harris
* @date 22/04/2020 (d/m/y, UTC+08:00)
* @brief IDataLogger for ClimbingClock logger
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite, this interface should work for any project, not just Climbing clock

#ifndef IDataLogger_h
#define IDataLogger_h

#include "Arduino.h"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not using anything in the Arduino library so this inclusion can be removed

* @param subsystem Name of relevant subsystem for alert
*/
virtual void logInfo(char[] timestamp, char[] subsystem, char[] message) = 0;
/**
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please insert an empty line above this line.

* @param subsystem Name of relevant subsystem for alert
*/
virtual void logWarning(char[] timestamp, char[] subsystem, char[] message) = 0;
/**
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please insert an empty line above

* @param subsystem Name of relevant subsystem for alert
*/
virtual void logError(char[] timestamp, char[] subsystem, char[] message) = 0;
/**
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert empty line above and fix indentation

2. Must be implemented by a data logger class to implement methods.

## How-To Guide

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How-To Guide no longer needs Public Class Constants, Typedefs, nor Methods, as these are covered in the Doxygen comments. Only the Steps subsection.

@@ -0,0 +1,28 @@
##############################################################################
# AUTHOR: Ashley Taylor and Harrison Outram
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change author to Jarod Harris

get TemptKEYWORD2
faultDetected KEYWORD2
setCooling KEYWORD2
tempToPower KEYWORD2
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update method keywords to the ones used in the IDataLogger class.

@@ -0,0 +1,28 @@
##############################################################################
# AUTHOR: Ashley Taylor and Harrison Outram
# DATE: 30/04/2020 (d/m/y, UTC+08:00)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the date

##############################################################################
# AUTHOR: Ashley Taylor and Harrison Outram
# DATE: 30/04/2020 (d/m/y, UTC+08:00)
# VERSION: 1.1
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change version number to 1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants