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.
Diff: RTOS-Threads/inc/Task3.h
- Revision:
- 12:953d25061417
- Parent:
- 5:4879ef0e6d41
- Child:
- 17:18c3bd016e49
--- a/RTOS-Threads/inc/Task3.h Fri May 02 07:22:09 2014 +0000 +++ b/RTOS-Threads/inc/Task3.h Fri May 02 17:01:56 2014 +0000 @@ -7,6 +7,13 @@ #define TASK3_PERIOD 1000/TASK3_FREQUENCY +/* Scale: +Vin = ADC * Vread * scale +Vin = (2^n-1)/3.3 * k*Vin * scale * ADJUST +*/ +//#define VOLTAGE_DIVIDER 0.05061465 +#define VOLTAGE_SCALE 49.60248447 + extern float ypr_offset[3]; extern bool box_demo; @@ -16,7 +23,7 @@ /* [YAW PITCH ROLL THROTTLE AUX] */ extern int RCCommand[5]; -/* RC Command (50Hz) */ +/* RC & BT Command & Telemetry (50Hz) */ void Task3(void const *argument); #endif