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.
Fork of priustroller_2 by
Diff: context.h
- Revision:
- 33:e7b132029bae
- Parent:
- 30:2b6d426f3bfc
--- a/context.h Mon Mar 16 02:43:19 2015 +0000
+++ b/context.h Mon Mar 16 03:09:48 2015 +0000
@@ -23,13 +23,13 @@
void ConfigureReference(float max_current);
void ConfigureDebugger(int debugger_channels, int debugger_size);
void AttachCallBack(void (*f)(Context *), int freq);
- void InitData();
void Start();
public:
Inverter *inverter;
Motor *motor;
User *user;
Throttle *throttle;
+ CurrentSensor *sense_ib, *sense_ic;
PositionSensor *sense_p;
TempSensor *sense_t_motor, *sense_t_inverter;
VoltageSensor *sense_bus;
@@ -40,6 +40,8 @@
LtiFilter *filter_d, *filter_q;
BufferedDebugger *debugger;
private:
+ void InitData();
+private:
void upd_function();
private:
PinName _oa, _ob, _oc, _ib_pin, _ic_pin, _throttle_pin, _pos_a_pin, _pos_b_pin, _en;
@@ -53,8 +55,6 @@
int _index;
unsigned long _time;
- float _dummyb, _dummyc;
-
Ticker *_time_upd_ticker;
};
#endif
\ No newline at end of file
