Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
MockSensorController.cpp@13:1323e2c0b697, 2016-06-11 (annotated)
- Committer:
- sbouber1
- Date:
- Sat Jun 11 13:19:20 2016 +0000
- Revision:
- 13:1323e2c0b697
- Parent:
- 12:c51f3aba84fe
- Child:
- 38:930469a33001
.
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| sbouber1 | 12:c51f3aba84fe | 1 | #include "MockSensorController.h" | 
| sbouber1 | 12:c51f3aba84fe | 2 | |
| sbouber1 | 12:c51f3aba84fe | 3 | void MockSensorController::update() { | 
| sbouber1 | 12:c51f3aba84fe | 4 | |
| sbouber1 | 12:c51f3aba84fe | 5 | } | 
| sbouber1 | 12:c51f3aba84fe | 6 | |
| sbouber1 | 12:c51f3aba84fe | 7 | std::string MockSensorController::get_name() { | 
| sbouber1 | 12:c51f3aba84fe | 8 | return "MockSensorController"; | 
| sbouber1 | 12:c51f3aba84fe | 9 | } | 
| sbouber1 | 12:c51f3aba84fe | 10 | |
| sbouber1 | 12:c51f3aba84fe | 11 | float MockSensorController::getValue() { | 
| sbouber1 | 13:1323e2c0b697 | 12 | this->sum_t += t.read_ms(); | 
| sbouber1 | 13:1323e2c0b697 | 13 | t.reset(); | 
| sbouber1 | 13:1323e2c0b697 | 14 | return (*this->func)(this->i++, this->sum_t); | 
| sbouber1 | 12:c51f3aba84fe | 15 | } |